Just test the return value of the getopts :
use Getopt::Std; + my %opts; + getopts("ciphdvs:",\%opts) or die "$0: USAGE: blah blah\n";;
/J\
In reply to Re: test for unknown option in getopts
by gellyfish
in thread test for unknown option in getopts
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |