<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alex's Adventures on the Infobahn - perl</title><link href="https://www.bennee.com/~alex/" rel="alternate"></link><link href="https://www.bennee.com/~alex/blog/tag/perl/feed" rel="self"></link><id>https://www.bennee.com/~alex/</id><updated>2010-03-31T10:47:00+01:00</updated><subtitle>the wanderings of a supposed digital native</subtitle><entry><title>Learning to love the snake</title><link href="https://www.bennee.com/~alex/blog/2010/03/31/learning-to-love-the-snake/" rel="alternate"></link><published>2010-03-31T10:47:00+01:00</published><updated>2010-03-31T10:47:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2010-03-31:/~alex/blog/2010/03/31/learning-to-love-the-snake/</id><summary type="html">&lt;p&gt;Yesterday I finished of what is hopefully the last testing release of the product I'm responsible for, assuming no major problems it will go gold soon. This means I can start on doing some new development work. The thing I'm working on next will be done in a scripting language …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Yesterday I finished of what is hopefully the last testing release of the product I'm responsible for, assuming no major problems it will go gold soon. This means I can start on doing some new development work. The thing I'm working on next will be done in a scripting language as basically the task of ensuring configurations are correct and properly setup is a) not performance critical and b) a hell of a lot easier than wrangling strings in C.&lt;/p&gt;
&lt;p&gt;While most of the scripting stuff on the product is written in perl I've been contemplating doing something a bit more major with &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Python_(programming_language)"&gt;Python&lt;/a&gt;. While the perl I write (&lt;a class="reference external" href="http://github.com/stsquad/ps3enc/blob/master/ps3enc.pl"&gt;example&lt;/a&gt;) probably looks more like C with extra punction marks compared to the code of a seasoned perl wrangler I still occasionaly get tripped up by it. In contrast my experience with Python so far has been much more pleasent, no doubt helped by the ability to experiment in an &lt;a class="reference external" href="http://ipython.scipy.org/moin/"&gt;interactive python shell&lt;/a&gt;. So far it's behaviour has been unsurprising. We shall see how I feel about it after this piece of work :-)&lt;/p&gt;
&lt;p&gt;Of course the first thing to do before starting out on this course is to see if my editor is configured and ready. I've immediately walked into the &lt;em&gt;python.el&lt;/em&gt; and &lt;em&gt;python-mode.el&lt;/em&gt; &lt;a class="reference external" href="http://www.emacswiki.org/emacs/PythonMode"&gt;schism&lt;/a&gt;. I'm going with &lt;em&gt;python-mode.el&lt;/em&gt; for the time being but at the moment I'm not doing much more than run iPython as a inferior shell within Emacs.&lt;/p&gt;
</content><category term="geek"></category><category term="emacs"></category><category term="perl"></category><category term="python"></category></entry><entry><title>Too much perl, the irony</title><link href="https://www.bennee.com/~alex/blog/2008/06/24/too-much-perl-the-irony/" rel="alternate"></link><published>2008-06-24T16:42:00+01:00</published><updated>2008-06-24T16:42:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2008-06-24:/~alex/blog/2008/06/24/too-much-perl-the-irony/</id><summary type="html">&lt;p&gt;I got my current job based on my experience with C/C++ and GTK. So far most of the code I've been writing has been perl and Java. Some times I think I'm writing too much perl:&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;# Quick and dirty match&amp;nbsp; for IP (but without the tedious address&amp;nbsp; # verification)&amp;nbsp;&amp;nbsp;&amp;nbsp; my …&lt;/tt&gt;&lt;/p&gt;</summary><content type="html">&lt;p&gt;I got my current job based on my experience with C/C++ and GTK. So far most of the code I've been writing has been perl and Java. Some times I think I'm writing too much perl:&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;# Quick and dirty match&amp;nbsp; for IP (but without the tedious address&amp;nbsp; # verification)&amp;nbsp;&amp;nbsp;&amp;nbsp; my &lt;span class="pre"&gt;$ip_match=qr#([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3})#i;&lt;/span&gt;&lt;/tt&gt;&lt;/p&gt;
&lt;p&gt;The tedious address verification is what I laboured through on one of my Google phone interviews. I'm still not convinced by the argument of doing within the regex, and it will make it the regex so much more ugly and hard to follow. I skipped it here because the data is already verified and all I really need to differentiate from is [d]*.&lt;/p&gt;
</content><category term="geek"></category><category term="java"></category><category term="perl"></category></entry></feed>