Tag Archives: hacks

UNIVERSAL::new for command line MU

Years ago, chromatic released Acme::UNIVERSAL::new. It was a joke. This is not. Using object-oriented modules from the command line can be a PITA. I have to type the module name twice: once to load it and once to construct objects with it. In a program, that's not huge overhead, but in a one-liner, it annoys […]

Posted in hacks, perl programming | Also tagged , , | Comments closed

Stop Pod tests before they stop you!

Have you ever installed a CPAN module with a big dependency chain and had installation fail somewhere in the middle? Have you ever investigated and found the failure was due to Test::Pod or Test::Pod::Coverage? AAARRRGGGHHH! I hate that! Pod tests are release tests and shouldn't be inflicted on end users. But some authors got hooked […]

Posted in hacks, perl programming | Also tagged , , , | Comments closed

How to move CPAN RT tickets to Github

Most of my new CPAN modules use Github for issue tracking because of the nice integration with pull requests. I recently wanted to migrate an older distribution to using Github, but didn't want to track tickets in two places. A while ago, Yanick Champoux wrote Bandying tickets from RT to Github, which looked like exactly […]

Posted in git, perl programming | Also tagged , , , | Comments closed

Why I sometimes hate require

Can you spot the error in this code? Not yet? Here's the error I get compiling it: What the heck? I imported Num, so why is it not allowed? (Spot the error yet?) Here's a hint: I'm using a Mac. Does this make it clearer: Aha! I said "Mooselike" instead of "MooseLike". And the Mac […]

Posted in perl programming | Also tagged , | Comments closed

Hilight growls from irssi with Plack and ssh

I use irssi/screen on a remote server to maintain a constant IRC presence and I wanted a nice way to pop up a pretty, on-screen notification when my nick is hilighted or when I get a direct message. Irssi already has Perl 5 scripting support built-in, so the rest just took a little whipuptitude. Here […]

Posted in perl programming | Also tagged , , , , | Comments closed

© 2009-2014 David Golden All Rights Reserved