in reply to use strict with Getopt::Std
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.use vars qw/$opt_J ... and so on .../;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use strict with Getopt::Std
by cutter (Acolyte) on Mar 19, 2003 at 22:01 UTC |