<?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>Stupid Foot &#187; Perl</title>
	<atom:link href="http://stupidfoot.com/tag/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://stupidfoot.com</link>
	<description>A blog about my personal business projects, web sites and making money</description>
	<lastBuildDate>Sun, 15 May 2011 04:42:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Easy access to the HTML Devel::Cover report from Dist::Zilla::App::Command::cover</title>
		<link>http://stupidfoot.com/2011/04/27/easy-access-to-the-html-develcover-report-from-distzillaappcommandcover</link>
		<comments>http://stupidfoot.com/2011/04/27/easy-access-to-the-html-develcover-report-from-distzillaappcommandcover#comments</comments>
		<pubDate>Wed, 27 Apr 2011 04:25:39 +0000</pubDate>
		<dc:creator>Theodore</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Devel::Cover]]></category>
		<category><![CDATA[Dist::Zilla]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://stupidfoot.com/?p=310</guid>
		<description><![CDATA[I love me some Dist::Zilla and Dist::Zilla::App::Command::cover. I wanted an easy way to load the Devel::Cover HTML coverage report. I&#8217;ve been using this on my Macbook. dzil cover &#124; grep &#8216;coverage.html&#8217; &#124; awk {&#8216;print $5&#8242;}  &#124; xargs open and this on Ubuntu. dzil cover &#124; grep &#8216;coverage.html&#8217; &#124; awk {&#8216;print $5&#8242;}  &#124; xargs -I{} firefox <a href='http://stupidfoot.com/2011/04/27/easy-access-to-the-html-develcover-report-from-distzillaappcommandcover'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I love me some <a href="http://search.cpan.org/dist/Dist-Zilla/">Dist::Zilla</a> and <a href="http://search.cpan.org/~marcel/Dist-Zilla-App-Command-cover-1.101000/lib/Dist/Zilla/App/Command/cover.pm">Dist::Zilla::App::Command::cover</a>. I wanted an easy way to load the <a href="http://search.cpan.org/dist/Devel-Cover/">Devel::Cover</a> HTML coverage report. I&#8217;ve been using this on my Macbook.</p>
<blockquote><p>dzil cover | grep &#8216;coverage.html&#8217; | awk {&#8216;print $5&#8242;}  | xargs open</p></blockquote>
<p>and this on Ubuntu.</p>
<blockquote><p>dzil cover | grep &#8216;coverage.html&#8217; | awk {&#8216;print $5&#8242;}  | xargs -I{} firefox {} &amp;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://stupidfoot.com/2011/04/27/easy-access-to-the-html-develcover-report-from-distzillaappcommandcover/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pythonbrew, perlbrew minus Perl plus Python</title>
		<link>http://stupidfoot.com/2010/11/29/pythonbrew-perlbrew-minus-perl-plus-python</link>
		<comments>http://stupidfoot.com/2010/11/29/pythonbrew-perlbrew-minus-perl-plus-python#comments</comments>
		<pubDate>Mon, 29 Nov 2010 05:25:25 +0000</pubDate>
		<dc:creator>Theodore</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://stupidfoot.com/?p=304</guid>
		<description><![CDATA[Recently I wrote about App-perlbrew and wondered if something similar existed for Python. A friend of my showed me pythonbrew. Pythonbrew seems to be directly inspired by perlbrew, it has a very similar command structure and syntax. Both pythonbrew and perlbrew have a predefined list of supported versions of Python and Perl respectively. It is <a href='http://stupidfoot.com/2010/11/29/pythonbrew-perlbrew-minus-perl-plus-python'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://stupidfoot.com/2010/11/17/app-perlbrew-rvm-for-perl">I wrote about App-perlbrew</a> and wondered if something similar existed for Python. A friend of my showed me <a href="https://github.com/utahta/pythonbrew">pythonbrew</a>. Pythonbrew seems to be directly inspired by perlbrew, it has a very similar command structure and syntax.</p>
<p>Both pythonbrew and perlbrew have a predefined list of supported versions of Python and Perl respectively. It is my personal opinion that this isn&#8217;t a <em>good</em> thing. Both Python and Perl list their released versions on their sites and it would be trivial to parse that information. I have a patch for perlbrew that does just that. I have started working on one for pythonbrew today and hope to have it finished and tested in a few days. I should probably send a pull request for the perlbrew patch as it doesn&#8217;t do anyone much good sitting in my repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://stupidfoot.com/2010/11/29/pythonbrew-perlbrew-minus-perl-plus-python/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Poker Stars Play Money Logs to Real Money</title>
		<link>http://stupidfoot.com/2009/05/20/converting-poker-stars-play-money-logs-to-real-money</link>
		<comments>http://stupidfoot.com/2009/05/20/converting-poker-stars-play-money-logs-to-real-money#comments</comments>
		<pubDate>Wed, 20 May 2009 17:46:56 +0000</pubDate>
		<dc:creator>Theodore</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Poker]]></category>

		<guid isPermaLink="false">http://stupidfoot.com/blog/?p=244</guid>
		<description><![CDATA[I wanted to use Poker Tracker to keep track of my stats when playing at the play money tables of Poker Stars. Poker Tracker doesn&#8217;t support the play money tables. I wrote some Perl to convert the the lots from the play money format into the real money format. #!/usr/bin/perl use strict; use Cwd; use <a href='http://stupidfoot.com/2009/05/20/converting-poker-stars-play-money-logs-to-real-money'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I wanted to use Poker Tracker to keep track of my stats when playing at the play money tables of Poker Stars. Poker Tracker doesn&#8217;t support the play money tables.</p>
<p>I wrote some Perl to convert the the lots from the play money format into the real money format.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl
</span><span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Cwd<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> <span style="color: #990000;">File</span><span style="color: #339933;">::</span><span style="color: #004000;">Find</span><span style="color: #339933;">;</span>
&nbsp;
my <span style="color: #000088;">$some_dir</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Z:<span style="color: #000099; font-weight: bold;">\\</span>HandHistory&quot;</span><span style="color: #339933;">;</span>
my <span style="color: #000088;">$startDir</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>Cwd<span style="color: #339933;">::</span><span style="color: #004000;">cwd</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
find<span style="color: #009900;">&#40;</span>\<span style="color: #339933;">&amp;</span>processFile<span style="color: #339933;">,</span> <span style="color: #000088;">$some_dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
&nbsp;
sub processFile <span style="color: #009900;">&#123;</span>
    shift<span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #b1b100;">if</span> not <span style="color: #339933;">/</span>\<span style="color: #339933;">.</span>txt$<span style="color: #339933;">/;</span>
    my <span style="color: #000088;">$inFileName</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_</span><span style="color: #339933;">;</span>
    my <span style="color: #000088;">$infile</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$startDir</span>/<span style="color: #006699; font-weight: bold;">$File</span>::Find::name&quot;</span><span style="color: #339933;">;</span>
    my <span style="color: #000088;">$outfile</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$startDir</span>/outHands/<span style="color: #006699; font-weight: bold;">$inFileName</span>.$$.converted.txt&quot;</span><span style="color: #339933;">;</span>
    open <span style="color: #009900;">&#40;</span>inFILE<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;<span style="color: #006699; font-weight: bold;">$infile</span>&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #0000ff;">&quot;can't open in file!: #<span style="color: #006699; font-weight: bold;">$infile</span># ($!)&quot;</span><span style="color: #339933;">;</span>
    open <span style="color: #009900;">&#40;</span>outFILE<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&gt;<span style="color: #006699; font-weight: bold;">$outfile</span>&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #0000ff;">&quot;can't open out file!:#<span style="color: #006699; font-weight: bold;">$outfile</span># ($!)&quot;</span><span style="color: #339933;">;</span>
    my <span style="color: #339933;">@</span>players<span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>inFILE<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        chomp<span style="color: #339933;">;</span>
        <span style="color: #339933;">@</span>players <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>s<span style="color: #339933;">/</span>^<span style="color: #009900;">&#40;</span>PokerStars Game <span style="color: #339933;">.*</span>\<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>\d<span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span>\d<span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>\<span style="color: #009900;">&#41;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$<span style="color: #339933;">/</span>\<span style="color: #cc66cc;">1</span>\$\<span style="color:#800080;">2.00</span>\<span style="color: #339933;">/</span>\$\<span style="color:#800080;">3.00</span>\<span style="color: #cc66cc;">4</span><span style="color: #339933;">/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        push<span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span>players<span style="color: #339933;">,</span> $<span style="color:#800080;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>^Seat <span style="color: #009900;">&#91;</span>\d<span style="color: #339933;">+</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span> \<span style="color: #009900;">&#40;</span>\d<span style="color: #339933;">+</span> in chips\<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">foreach</span> my <span style="color: #000088;">$key</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span>players<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            my <span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$key</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$value</span> <span style="color: #339933;">=</span>~ s<span style="color: #339933;">/</span>\s<span style="color: #339933;">+/</span>_<span style="color: #339933;">/;</span>
            <span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> $<span style="color:#800080;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span>~ s<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span>$<span style="color:#800080;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>_\<span style="color: #cc66cc;">1</span><span style="color: #339933;">/</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span> <span style="color: #339933;">=</span>~ <span style="color: #339933;">/</span>^<span style="color: #009900;">&#40;</span>\d<span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>$<span style="color: #339933;">/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            s<span style="color: #339933;">/</span><span style="color: #000088;">$key</span><span style="color: #339933;">/</span><span style="color: #000088;">$value</span><span style="color: #339933;">/;</span>
        <span style="color: #009900;">&#125;</span>
        s<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>\<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>\d<span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>\<span style="color: #009900;">&#41;</span> \<span style="color: #339933;">.</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>\<span style="color: #cc66cc;">1</span>\$\<span style="color:#800080;">2.00</span>\<span style="color: #cc66cc;">3</span><span style="color: #339933;">/</span>g<span style="color: #339933;">;</span>
        s<span style="color: #339933;">/</span>\<span style="color: #009900;">&#40;</span>Play Money\<span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//g;</span>
&nbsp;
        s<span style="color: #339933;">/</span>^\s<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//;</span>
        s<span style="color: #339933;">/</span>\s<span style="color: #339933;">+</span>$<span style="color: #666666; font-style: italic;">//;</span>
        <span style="color: #b1b100;">print</span> outFILE <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$_</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    close<span style="color: #009900;">&#40;</span>inFILE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    close<span style="color: #009900;">&#40;</span>outFILE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://stupidfoot.com/2009/05/20/converting-poker-stars-play-money-logs-to-real-money/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
