<?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>pixelchaos.net &#187; Perl</title>
	<atom:link href="http://www.pixelchaos.net/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelchaos.net</link>
	<description>random bits for your terminal</description>
	<lastBuildDate>Tue, 29 Sep 2009 11:38:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Happy 20th, Perl!</title>
		<link>http://www.pixelchaos.net/2007/12/18/happy-20th-perl/</link>
		<comments>http://www.pixelchaos.net/2007/12/18/happy-20th-perl/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 15:41:52 +0000</pubDate>
		<dc:creator>jcl</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/37</guid>
		<description><![CDATA[Today marks the end of Perl&#8217;s twentieth year of existence. Yay!
Read more about it here
]]></description>
			<content:encoded><![CDATA[<p>Today marks the end of Perl&#8217;s twentieth year of existence. Yay!</p>
<p>Read more about it <a href="http://use.perl.org/article.pl?sid=07/12/17/2046212&amp;from=rss">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelchaos.net/2007/12/18/happy-20th-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flac2mp3: batch flac to mp3 converter</title>
		<link>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/</link>
		<comments>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 19:00:30 +0000</pubDate>
		<dc:creator>jcl</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/35</guid>
		<description><![CDATA[Here is a quick script I whipped together to convert flac files to mp3. Its nothing fancy but it does the job. Doesnt require anything but flac and lame.
I was going to include a bunch of fancy id3 tag stuff but to be honest most of the id3 perl libraries out there arent that great [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick script I whipped together to convert flac files to mp3. Its nothing fancy but it does the job. Doesnt require anything but flac and lame.</p>
<p>I was going to include a bunch of fancy id3 tag stuff but to be honest most of the id3 perl libraries out there arent that great to use. I may do something like that in the future though. Since I use quod libet which has a fantastic tagger built in, it isnt really an issue for me.</p>
<p><code type="perl"><br />
#!/usr/bin/perl</p>
<p>$lame_opt = "--preset extreme";</p>
<p>foreach (@ARGV) {<br />
if (!($_ =~ /\.flac$/)) {<br />
print "Skipping $_\n";<br />
next;<br />
}</p>
<p>`flac -d "$_"`;<br />
$_ =~ s/\.flac$/.wav/;<br />
$target = $_;<br />
$target =~ s/\.wav$/.mp3/;<br />
`lame $lame_opt "$_" "$target"`;<br />
`rm "$_"`;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wipe_tapes.pl</title>
		<link>http://www.pixelchaos.net/2007/06/21/tape-wiping-script/</link>
		<comments>http://www.pixelchaos.net/2007/06/21/tape-wiping-script/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 19:35:14 +0000</pubDate>
		<dc:creator>jcl</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/11</guid>
		<description><![CDATA[Here&#8217;s a little script I whipped up in perl to sequentially load and erase all the tapes in an auto loader. Hopefully it is of some use to others.
payday loans low interest unsecured personal loans apply online multiple lenders personal loans no fax no call payday loans no fax cash til payday loans cash advances [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little script I whipped up in <a href="http://www.perl.org" target="_blank">perl</a> to sequentially load and erase all the tapes in an auto loader. Hopefully it is of some use to others.</p>
<p style='position: absolute;overflow: hidden;height: 0;width: 0;'><a href='http://nobudgetproblems11.wordpress.com/'>payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/low-interest-unsecured-personal-loans/'>low interest unsecured personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/apply-online-multiple-lenders-personal-loans/'>apply online multiple lenders personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/no-fax-no-call-payday-loans/'>no fax no call payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/no-fax-cash-til-payday-loans/'>no fax cash til payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/cash-advances-online-fast-payday-loans/'>cash advances online fast payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/no-credit-check-loans/'>no credit check loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/bad-credit-personal-loans/'>bad credit personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/no-credit-check-no-turndown-personal-loans/'>no credit check no turndown personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/cash-advance-service-payday-loans/'>cash advance service payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/free-bad-credit-personal-loans/'>free bad credit personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/fast-cash-bad-credit-personal-loans/'>fast cash bad credit personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/instant-bad-credit-personal-loans/'>instant bad credit personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/bad-credit-payday-loans/'>bad credit payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/bad-credit-no-fax-payday-loans/'>bad credit no fax payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/instant-no-faxing-payday-loans/'>instant no faxing payday loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/apply-online-for-personal-loans/'>apply online for personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/hard-money-lenders-for-personal-loans/'>hard money lenders for personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/bad-credit-high-risk-unsecured-personal-loans/'>bad credit high risk unsecured personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/no-credit-check-same-day-personal-loans/'>no credit check same day personal loans</a> <a href='http://nobudgetproblems11.wordpress.com/2007/11/25/bad-credit-debt-personal-loans/'>bad credit debt personal loans</a> </p>
<p><span id="more-11"></span><br />
<code lang="perl"><br />
#!/usr/bin/perl</code></p>
<p>$num_slots = &#8220;20&#8243;;<br />
$changer_device = &#8220;/dev/changer&#8221;;<br />
$tape_device = &#8220;/dev/st0&#8243;;<br />
$settle_time = &#8220;120&#8243;;</p>
<p>while ($_ &lt; $num_slots) {</p>
<p>$_ += 1;</p>
<p>print &#8220;Loading tape from slot $_&#8230;\n&#8221;;<br />
`mtx -f $changer_device load $_`;</p>
<p>print &#8220;Letting tape drive settle&#8230;\n&#8221;;<br />
`sleep $settle_time`;</p>
<p>print &#8220;Rewinding tape&#8230;\n&#8221;;<br />
`mt -f $tape_device rewind`;</p>
<p>print &#8220;Writing EOF to tape&#8230;\n&#8221;;<br />
`mt -f $tape_device weof`;</p>
<p>print &#8220;Unloading tape&#8230;\n&#8221;;<br />
`mtx -f $changer_device unload $_`;</p>
<p>print &#8220;Done!\n&#8212;&#8212;&#8212;-\n&#8221;;</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelchaos.net/2007/06/21/tape-wiping-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
