Author Archives: dagolden

Giving thanks as thanks

Ricardo wrote an article "promoting little gifts", which @perlbuzz tweeted as "giving little gifts as thanks". I like that idea, and it inspired me to remind people to please also consider just giving "thanks", too. Sure, I'd love a song or a small ebook (and maybe I should set up a wishlist), but I also [...]

Posted in perl programming | Tagged , , | 5 Comments

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 | 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 | 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 | 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 | Tagged , , | 2 Comments

© 2009-2012 David Golden All Rights Reserved