S
S
Hi,
I'm using Getopt::Std in a script that I'm writing. While testing
boundary conditions, I notice some strange behavior. Here's the code
snippet in question:
use vars qw /%option/;
getopts('avs:m', \%option) or die Usage();
die "You did not enter any options - run $0 -h to view options\n" if !
%option;
Now, if I run my script with the -s option, but no argument, it dies as
expected, except for the following:
1 at ./make-acct-ctl.pl line 14.
Can anyone help to explain/correct this?
I'm using Getopt::Std in a script that I'm writing. While testing
boundary conditions, I notice some strange behavior. Here's the code
snippet in question:
use vars qw /%option/;
getopts('avs:m', \%option) or die Usage();
die "You did not enter any options - run $0 -h to view options\n" if !
%option;
Now, if I run my script with the -s option, but no argument, it dies as
expected, except for the following:
1 at ./make-acct-ctl.pl line 14.
Can anyone help to explain/correct this?