in reply to Re: use strict with Getopt::Std
in thread use strict with Getopt::Std
still, for cutter to get this to work with strict, %opts will need to be declared first.
something like:
my %opts; getopts( "J:f:s:", \%opts ) or die "error message..."; ## --or, all in one (shorter but not as clear)-- getopts( "J:f:s:", \my %opts ) or die "...";
will have all the advantages you mentioned, and be strict compliant.
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: use strict with Getopt::Std
by rjray (Chaplain) on Mar 20, 2003 at 22:21 UTC |