On Mon, Nov 3, 2008 at 13:53, Rob Dixon <[EMAIL PROTECTED]> wrote:
snip
> I also think that you have not written
>
>  use strict;
>  use warnings;
>
> at the start of your program, and anything that is presented to this list 
> should
> at least have those in place.
snip

Just because I am in a grumpy/contrary mood, I take issue with that
statement.  Perl is not just a programming language; it is also a
command line tool.  There is no reason to say
    perl -Mstrict -wnle 'print $1 if /foo="([^"]*)"' file_of_records
when
    perl -nle 'print $1 if /foo="([^"]*)"/' file_of_records
will do; however, I do agree that any script should definitely use the
strict and warnings pragmas.  Of course, I haven't seen a
Perl-as-a-command-line-tool question in a long time, so I am just
being grumpy.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to