04/16/06

Permalink 09:16:49 pm, Categories: code, perl, 161 words   English (US)

The Power of Perl

Perl is a much-malingned as a write-only language by those who don't know it, but they just don't understand the power.

Here's a little anecdote which should clear things up:

In a late morning meeting at work, I learned that there was some document corruption problem which was rare and difficult to catch, which showed up in our pdf documents as a double question mark ("??"). Although I only know very little about the pdf format, I said "Oh, I bet I can write a perl program to detect that!"

When I got back to my cube, I searched CPAN for "pdf" and spent about half an hour going over my numerous pdf library choices before finally settling on CAM::PDF.

Extracting text from the pdf was then a piece of cake, and of course searching for "??" is a trivial matter for perl's famous regular expressions.

By the end of that day I had a working program. That's the power of perl.

Forrest's Tech Blog

Forrest wanted to have a special blog to blather on about Linux, Perl, and stuff, so his mother wouldn't have to read that junk when checking his personal blog.

September 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Search

Categories


Archives

Linkblog

powered by

left-leaning

Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution