Saturday, July 10, 2010

Nifty Perl Hack

I threw together a tiny bit of code with the example code from Net::IMAP::Simple to make a program that watches for Mailman unsubscribe messages, logs them, then deletes the message.  It was a 5 minute job (except for the part where my iteration was off by one and kept deleting the wrong message).  Perl is so handy for things like this.

1 comment:

  1. Amen. There is hardly anything that can't be done with a Perl CPAN module.

    For the few things that aren't covered by CPAN modules, it's so easy to upload to CPAN with Dist::Zilla these days, that you can easily write a new module (of which 90% is probably already implemented by another module.)