CentOS/RHEL x86_64 + VMWare: Use of uninitialized value in string

I was working with a CentOS 5 x86_64 installation running VMWare server last week when I stumbled upon this error: Use of uninitialized value in string eq at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/VMware/VmPerl.pm line 114. You can run the vmware-cmd application with this error (it’s not a fatal error) and keep going with your normal business. However, if you want to remove the error, comment out lines 114 and 115 in the Perl module referenced by the error:
Read more →

Adjusting CPAN mirror list

One of the most frustrating aspects of CPAN is connecting to mirrors via FTP. Most of the time, the mirrors are extraordinarily slow when it comes to FTP logins, and they often fail. As we all know, RHEL enjoys pulling some shenanigans (Scalar::Util - enough said) when perl receives an upgrade, and when I need CPAN to work quickly, it often does the opposite. I was struggling to find a way to reconfigure CPAN to use HTTP mirrors rather than FTP, but I couldn’t figure out where CPAN was holding this data.
Read more →

Backing up MySQL to Amazon’s S3

I received an e-mail from Tim Linden about a post he made in his blog about backing up MySQL data to Amazon’s S3. The article goes over installing the Net::Amazon::S3 Perl module via WHM (which is handy for the cPanel users). However, if you’re not a cPanel user, you can install it via CPAN:

perl -MCPAN -e 'install Net::Amazon::S3' If you’d rather install it through Webmin, go to the ‘Others’ section, and click ‘Perl Modules’.

Read more →

Red Hat Perl Issues: unable to call function somefunction on undefined value

Apparently, a recent Red Hat Enterprise Linux update for ES3, 4 and 5 caused some Perl applications to throw errors like these: unable to call function somefunction on undefined value Of course, replace somefunction with your function of choice. To correct the issue, you can force CPAN to bring back a more sane version of Scalar::Util:

perl -MCPAN -e shell cpan> force install Scalar::Util

Read more →