Perl Makes Me Feel Dirty

I had to code Perl at my day job today… and was productive… and enjoyed it.  Ewwwww.  The task was munging 15,000 mails from a variety of mailing list archives into our email system to test the new spam filter.  Previously, I would have used gawk for that, and spent a good half my morning writing out clever ways to extract the “next” mail from the archive’s web page.  That task took a single regular expression — that whole “matching the stuff in parentheses” is really magic.

Then I got home and had to add a bit of Javascript to all of my webpages to get the new e-junkie cart working.  So I decided “Hey, this will only take a minute in Perl”.  And it actually only did take a minute.  It was sort of fun, too.

Someone please pass me a flail, I need to be beaten before all my code looks like newspaper characters cussing.  (No lie.  That one minute program included the line $_=~s/blahblah/blah/.  Experienced Perl hackers will immediately notice the problem with this line — its four characters longer than it needs to be.

Explore posts in the same categories: Uncategorized

One Comment on “Perl Makes Me Feel Dirty”

  1. Steve Moyer Says:

    In his next role, Patrick will play a monk in the film adaptation of the runaway best-seller “The DaVinci Code”.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: