Perl - you'll either love it or you'll hate it, but you won't ignore it if you want to get things done!

· Read in about 2 min · (356 words) ·

Have spent the better part of yesterday night writing a Perl script to aid my fiance' in doing some log analysis. And I’m no Perl guru - my biggest Perl program till date wouldn’t have been more than a 100 lines. Here’s my raves and rants on it Raves

  1. Most powerful reg ex capabilities with a full programming language to back it up!

  2. Large and powerful standard library.

  3. Platform independent. Have windoze at work, usually am on a cygwin console and have linux/windows dual boot at home. Perl doesn’t complain!


  1. Syntax - I’ve never got used to the ultra concise Perl vars. But then, I dont use it regularly enough. Still, the syntax just isnt readable.

  2. Syntax isn’t orthogonal - guess what I’m trying to say is that there isn’t one and only one way to achieve something. While this is totally against the Perl mantra of "There’s more than one way to do it", in spite of using it on and off, I’ve never been able to embrace

  3. References

  4. Subs

  5. OO Perl

  6. Writing perl mods

I’ve used all of them at sometime or the other but the next time I pick up Perl to do some nifty little script, I find myself going through perlsub, perlref, perlreftut and perltoot - not nice!

I guess at sometime I did come across Python - which is supposed to address all the shortcomings of Perl while retaining the pluses. But then once I got everything set up, saw that its indentation sensitive!! Now does that remind me of something…​.called FORTRAN ??

Anyway, it put me off so much that I never took a look at it again - probably I should, and be more generous while at it! Meanwhile, I’ll use Perl the next time I need to write a nifty little script to do some text analysis.

Interested? - I’ll recommend Robert’s perl tutorial.

Programmer: n. Person who spends 10 hours automating something that takes an hour manually just so that

  1. He can see his program complete the work in 1 hour.

  2. He can tell his poor kith and kin what a great guy he is.