Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: use strict with Getopt::Stdby larsen (Parson) |
on Mar 19, 2003 at 21:51 UTC ( [id://244473]=note: print w/replies, xml ) | Need Help?? |
With my you don't create a global, but a lexical.
You want to
at the top of your program. This way, you'll tell your program that you're going to use those global variable names, and strict won't complain. I suggest to read Lexical scoping like a fox and Coping with Scoping. I think there will be a column by merlyn on this subject soon.
In Section
Seekers of Perl Wisdom
|
|