<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Racker Hacker &#187; perl</title>
	<atom:link href="http://rackerhacker.com/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQLTuner mentioned at the O&#039;Reilly MySQL Conference</title>
		<link>http://rackerhacker.com/2011/04/15/mysqltuner-mentioned-at-the-oreilly-mysql-conference/</link>
		<comments>http://rackerhacker.com/2011/04/15/mysqltuner-mentioned-at-the-oreilly-mysql-conference/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 01:56:31 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqltuner]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2271</guid>
		<description><![CDATA[If you push play, the video should scoot out to about the 14m40s mark where MySQLTuner appears on one of the slides. Thanks to Trent Hornibrook for letting me know! MySQLTuner mentioned at the O'Reilly MySQL Conference is a post from: Major Hayden's Racker Hacker blog. Thanks for following the blog via the RSS feed. [...]<p><a href="http://rackerhacker.com/2011/04/15/mysqltuner-mentioned-at-the-oreilly-mysql-conference/">MySQLTuner mentioned at the O'Reilly MySQL Conference</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/L1V5T5rknq0?rel=0#t=14m40s" frameborder="0" allowfullscreen></iframe></p>
<p>If you push play, the video should scoot out to about the 14m40s mark where MySQLTuner appears on one of the slides.  Thanks to <a href="http://twitter.com/#!/trenthornibrook">Trent Hornibrook</a> for letting me know!</p>
<p><a href="http://rackerhacker.com/2011/04/15/mysqltuner-mentioned-at-the-oreilly-mysql-conference/">MySQLTuner mentioned at the O'Reilly MySQL Conference</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/04/15/mysqltuner-mentioned-at-the-oreilly-mysql-conference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CPAN: Automatically install dependencies without confirmation</title>
		<link>http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/</link>
		<comments>http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 01:44:51 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=661</guid>
		<description><![CDATA[I enjoy using CPAN because it installs Perl modules with a simple interface, fetches dependencies, and warns you when things are about to end badly. However, one of my biggest complaints is when it constantly confirms installing dependencies. While this is an annoyance if you have to install a module with many dependencies (or if [...]<p><a href="http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/">CPAN: Automatically install dependencies without confirmation</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I enjoy using <a href="http://www.cpan.org/">CPAN</a> because it installs Perl modules with a simple interface, fetches dependencies, and warns you when things are about to end badly.  However, one of my biggest complaints is when it constantly confirms installing dependencies.  While this is an annoyance if you have to install a module with many dependencies (or if you're working with CPAN on a new server), you can tell CPAN to automatically confirm the installation of dependencies.</p>
<p>To do this, simply bring up a CPAN shell:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">perl -MCPAN -e shell</pre></div></div>

<p>Run these two commands in the CPAN shell:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">o conf prerequisites_policy follow
o conf commit</pre></div></div>

<p>Now, exit the CPAN shell, start the CPAN shell, and try to install a module that you need.  All dependencies will be automatically confirmed, downloaded and installed.</p>
<p>The first line sets your dependency policy to <em>follow</em> rather than <em>ask</em> (the default).  The second line tells CPAN to write the changes to your user's CPAN configuration file to make them permanent.</p>
<p>A big thanks goes out to <a href="http://lee.hambley.name/about">Lee Hambley</a> for the <a href="http://lee.hambley.name/2008/05/cpan-automatically-accept-dependencies">fix</a>.</p>
<p><strong>WARNING:</strong> <em>There are some occasions where you would not want to install dependencies from CPAN.  Examples of these situations are when your operating system's package manager (yum, up2date, apt-get, aptitude, etc) has installed Perl modules in an alternative location or when you have manually installed modules in a non-standard way.  I'm a Red Hat guy, and these problems rarely arise on Red Hat/Fedora systems, but your mileage may vary.</em></p>
<p><a href="http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/">CPAN: Automatically install dependencies without confirmation</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MySQLTuner 0.9.9 is now available</title>
		<link>http://rackerhacker.com/2008/09/07/mysqltuner-099-is-now-available/</link>
		<comments>http://rackerhacker.com/2008/09/07/mysqltuner-099-is-now-available/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 02:05:03 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqltuner]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=421</guid>
		<description><![CDATA[MySQLTuner 0.9.9 is now available for download. There's a new wiki for the script at wiki.mysqltuner.com. The new wiki contains links to downloads, changelogs, and other details. If you want to know when the latest releases are available, there are multiple options: Follow RackerHacker on Twitter Sign up for the MySQLTuner mailing list Use the [...]<p><a href="http://rackerhacker.com/2008/09/07/mysqltuner-099-is-now-available/">MySQLTuner 0.9.9 is now available</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>MySQLTuner 0.9.9 is now available for <a href="http://mysqltuner.pl/">download</a>.  There's a new wiki for the script at <a href="http://wiki.mysqltuner.com">wiki.mysqltuner.com</a>.  The new wiki contains links to downloads, changelogs, and other details.</p>
<p>If you want to know when the latest releases are available, there are multiple options:</p>
<ul>
<li>Follow <a href="http://twitter.com/RackerHacker/">RackerHacker</a> on <a href="http://twitter.com/">Twitter</a></li>
<li>Sign up for the <a href="http://wiki.mysqltuner.com/MySQLTuner#Mailing_List">MySQLTuner mailing list</a></li>
<li>Use the <code>--checkversion</code> option when you run the script</li>
</ul>
<p><a href="http://rackerhacker.com/2008/09/07/mysqltuner-099-is-now-available/">MySQLTuner 0.9.9 is now available</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/09/07/mysqltuner-099-is-now-available/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS/RHEL x86_64 + VMWare: Use of uninitialized value in string</title>
		<link>http://rackerhacker.com/2008/09/03/centosrhel-x86_64-vmware-use-of-uninitialized-value-in-string/</link>
		<comments>http://rackerhacker.com/2008/09/03/centosrhel-x86_64-vmware-use-of-uninitialized-value-in-string/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 17:06:20 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=366</guid>
		<description><![CDATA[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 [...]<p><a href="http://rackerhacker.com/2008/09/03/centosrhel-x86_64-vmware-use-of-uninitialized-value-in-string/">CentOS/RHEL x86_64 + VMWare: Use of uninitialized value in string</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I was working with a CentOS 5 x86_64 installation running VMWare server last week when I stumbled upon this error:</p>
<p><code>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.</code></p>
<p>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:</p>
<pre><code>die "Perl API Version does not match dynamic library version."
    unless (version() eq $VERSION);</code></pre>
<p>Commenting out these lines does not affect the VMWare server in any way.</p>
<p><a href="http://rackerhacker.com/2008/09/03/centosrhel-x86_64-vmware-use-of-uninitialized-value-in-string/">CentOS/RHEL x86_64 + VMWare: Use of uninitialized value in string</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/09/03/centosrhel-x86_64-vmware-use-of-uninitialized-value-in-string/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adjusting CPAN mirror list</title>
		<link>http://rackerhacker.com/2008/06/16/adjusting-cpan-mirror-list/</link>
		<comments>http://rackerhacker.com/2008/06/16/adjusting-cpan-mirror-list/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 17:00:01 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=309</guid>
		<description><![CDATA[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 [...]<p><a href="http://rackerhacker.com/2008/06/16/adjusting-cpan-mirror-list/">Adjusting CPAN mirror list</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>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.  It wasn't in ~/.cpan and there was nothing in /etc for it.  However, I found that you can reconfigure CPAN by running the following command:</p>
<p><code># perl -MCPAN -e shell<br />
CPAN: File::HomeDir loaded ok (v0.69)</p>
<p>cpan shell -- CPAN exploration and modules installation (v1.9205)<br />
ReadLine support enabled</p>
<p>cpan[1]&gt; o conf init</code></p>
<p>The configuration script will run again as if you had never configured CPAN.  Best of all, if you need to stop mid-way through the reconfiguration, your original configuration is still there.  If you'd rather just adjust your mirror list rather than starting over completely with the CPAN configuration, use the following:</p>
<p>Display your current mirrors:<br />
<code>o conf urllist</code></p>
<p>Delete the first mirror in your list:<br />
<code>o conf urllist shift</code></p>
<p>Delete the last mirror in your list:<br />
<code>o conf urllist pop</code></p>
<p>Add on a new mirror:<br />
<code>o conf urllist push http://cpan.mirror.facebook.com/</code></p>
<p>Save your mirror changes:<br />
<code>o conf urllist commit</code></p>
<p><a href="http://rackerhacker.com/2008/06/16/adjusting-cpan-mirror-list/">Adjusting CPAN mirror list</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/06/16/adjusting-cpan-mirror-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up MySQL to Amazon&#039;s S3</title>
		<link>http://rackerhacker.com/2008/06/05/backing-up-mysql-to-amazons-s3/</link>
		<comments>http://rackerhacker.com/2008/06/05/backing-up-mysql-to-amazons-s3/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 00:18:49 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=306</guid>
		<description><![CDATA[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: # [...]<p><a href="http://rackerhacker.com/2008/06/05/backing-up-mysql-to-amazons-s3/">Backing up MySQL to Amazon's S3</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I received an e-mail from <a href="http://www.timlinden.com/">Tim Linden</a> about a <a href="http://www.timlinden.com/blog/server/backup-mysql-amazon-s3/">post he made in his blog</a> about backing up MySQL data to <a href="http://en.wikipedia.org/wiki/Amazon_S3">Amazon's S3</a>.</p>
<p>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:</p>
<p><code># perl -MCPAN -e 'install Net::Amazon::S3'</code></p>
<p>If you'd rather install it through Webmin, go to the 'Others' section, and click 'Perl Modules'.</p>
<p>Also, Tim mentions configuring a <a href="http://www.rjonna.com/ext/s3fox.php">Firefox extension for accessing S3</a> that works very well.  However, I find myself using Safari most often, so I prefer to use <a href="http://www.jungledisk.com/">Jungle Disk</a> or <a href="http://www.panic.com/transmit/">Transmit</a> on my Mac.</p>
<p>Overall, it's a great post, and I'm glad Tim told me about it!</p>
<p><a href="http://rackerhacker.com/2008/06/05/backing-up-mysql-to-amazons-s3/">Backing up MySQL to Amazon's S3</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/06/05/backing-up-mysql-to-amazons-s3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat Perl Issues: unable to call function somefunction on undefined value</title>
		<link>http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/</link>
		<comments>http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 18:19:12 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/</guid>
		<description><![CDATA[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 [...]<p><a href="http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/">Red Hat Perl Issues: unable to call function somefunction on undefined value</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Apparently, a recent Red Hat Enterprise Linux update for ES3, 4 and 5 caused some Perl applications to throw errors like these:</p>
<p><code>unable to call function <em>somefunction</em> on undefined value</code></p>
<p>Of course, replace <code>somefunction</code> with your function of choice.  To correct the issue, you can force CPAN to bring back a more sane version of Scalar::Util:</p>
<p><code># perl -MCPAN -e shell<br />
cpan&gt; force install Scalar::Util</code></p>
<p><a href="http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/">Red Hat Perl Issues: unable to call function somefunction on undefined value</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/11/19/red-hat-perl-issues-unable-to-call-function-somefunction-on-undefined-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

