Tag Archives: ironman

Code munging with vim: if modifier to if block

Not infrequently, I discover I want to turn an if modifier into an if block so I can add extra logic when the conditional is true. I decided to automate that with a vim macro: For it to work, the if modifier has to be on a line of its own (which I usually do [...]

Posted in perl programming | Also tagged , , | Leave a comment

Five ways to install module prereqs by hand

Have you ever tried installing a CPAN module's dependencies by hand? Imagine that you've downloaded a strange tarball or cloned a strange module repository. Running "perl Makefile.PL" or "perl Build.PL" gives you a long list of missing dependencies. How do you quickly install all those dependencies? Here are some options. See the last for a [...]

Posted in perl programming, toolchain | Also tagged , | 4 Comments

What are your top binary library dependencies?

On the #toolchain IRC channel, jawnsy and I were discussing how cool it would be if there were Alien::* packages for the top 10 or so binary libraries that people use with Perl. I.e. things like libssl, libxml2, libexpat, etc. I don't know what it would take to make that happen, because getting Alien packages [...]

Posted in perl programming | Also tagged , | 18 Comments

Sorting photos by timestamp with Perl

My digital picture frame does a slideshow in filename order. I have hundreds of pictures taken over several years on different cameras with different file naming schemes. I've even rolled over the counter on one of the cameras, so I might have IMG1234.jpg twice (saved in different directories). Here's how I used Perl to rename [...]

Posted in perl programming | Also tagged , | 2 Comments

Counterfactual Perl 6

Several recent posts (more here and here) discuss whether Perl 6 is an impediment for progress of Perl 5 and debate remedies involving changing the name of one or the other. The problem I have with these debates is that they sideline the realities of the current situation in favor of romanticizing a counterfactual. The [...]

Posted in p5p, perl programming, perl6 | Also tagged , , | 13 Comments

© 2009-2012 David Golden All Rights Reserved