HI

One local resident perl expert (speaking at a LUG) suggested modifying use
of the strict pragma with vars, as in :

#!/usr/bin/perl -w
use strict vars;

I find however that it's necessary to put 'vars' in quotes to avoid a
warning message, viz.:

          Unquoted string "vars" may clash with future reserved word at
/usr/local/bin/srns line 2.

When I mentioned the need for quotes, neither the teacher nor any perl
user in the LUG meeting was aware of such restriction. 

Why such a difference from one user to another in Perl? We are all using
perl 5.8 (perhaps some are on 5.6). 

$ perldoc strict    #   OR ...
$ man 3 strict      #    ...brings up description /examples with double
quotes around "vars" (and    .....#                           "sub" ,
"refs").      ...One textbook example i have shows single quotes.

BTW it appears that Perl 5.8 running on Cygwin /W2K doesn't generate the
error message. 
Other, 'normal' linux platforms give the warning (for this perl newbie at
least).

TIA


=====
John Ingersoll Jr.
Contract Programmer
Dept. of Social Services
Richmond, Va., USA

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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


Reply via email to