Re: perl

[prev] [thread] [next] [lurker] [Date index for 2006/12/22]

From: Earle Martin
Subject: Re: perl
Date: 11:10 on 22 Dec 2006
The software that I hate the most is often the software I have to do
maintenance on. I'm a 100% Perl guy, and spend a lot of time with
other people's Perl. One of my pet hates is seeing this:

>                 for ($i = 1 ; $i < scalar(@ARGV) ; $i++)
>                 {
>                         open INPUT,$ARGV[i];

Perl is not C. Yes, it lets you write do this. But you shouldn't. Why?
Because it has useful constructs like "foreach" that let you avoid
hateful neolithic code like this.

>                         &do_some_process(INPUT);

Just as hateful, or even more so, is something like this, which
generally indicates the author hasn't read any books about Perl that
were published since 1998, or learnt Perl from a shoddy website, last
updated around 2001, whose author hasn't read any books about Perl
that were published since 1998.

-- 
Earle Martin
            http://downlode.org/
http://purl.org/net/earlemartin/

Generated at 14:01 on 28 Dec 2006 by mariachi 0.52