Perl Syntax

Rick Delaney rick-h4KjNK7Mzas at public.gmane.org
Wed May 25 02:03:22 UTC 2005


On Tue, May 24, 2005 at 05:28:28PM -0400, Andrew Hammond wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Rick Delaney wrote:
> > On Tue, May 24, 2005 at 04:36:54PM -0400, Andrew Hammond wrote:
> > 
> >>If you're learning perl, the best advice I can give you is to start
> >>every single one of your programs with "use strict;", which will not
> >>allow you to use barewords.
> > 
> > It won't stop you from using barewords as hash keys.
> 
> Nor on the left hand side of the => list operator. I guess I could have
> added "except in places where the context is forced such as ..." but I
> wanted to keep thing simple.

I only pointed it out because the only barewords in the discussion were
hash keys.  The OP may already have "use strict" in the program and
wonder what all the fuss is about.

-- 
Rick Delaney
rick-h4KjNK7Mzas at public.gmane.org
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list