I am afraid what you will have to do is check blah is set once you have eaten up the options.
Cheers,use strict; use warnings; use Getopt::Long; { my $blah; my $result = GetOptions('blah=i' => \$blah); &usage unless $blah; print "result = $result\n"; print "blah = $blah\n"; } sub usage { print "$0: -blah=value\n" }
In reply to Re: Getopt::Long result issue
by Random_Walk
in thread Getopt::Long result issue
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |