Monthly Archives: December 2009

How To Fix "Metadata file does not match checksum" YUM error

# yum install -y ImageMagick-perl Loaded plugins: fastestmirror Setting up Install Process Parsing package install arguments Resolving Dependencies –> Running transaction check —> Package ImageMagick-perl.i386 0:6.2.8.0-4.el5_1.1 set to be updated filelists.xml.gz | 3.9 MB 00:09 … Run the following commands: … Continue reading

1 Comment

Perl Version of PHP's "ucwords" Function

my $string = ‘this is a string of text’; $string =~ s/\b(\w+)\b/ucfirst($1)/ge; print “$string\n”;

1 Comment

How To Merge PHP Objects

foreach($objectA as $k => $v) $objectB->$k = $v;

Leave a comment