- or download this
[0] # cat parameter_check.pl
use v5.10;
...
}
say "option c:", $options{'c'};
say "option d: ", $options{'d'};
- or download this
parameter_check.pl -b -ddd
- or download this
parameter_check.pl -ddd -b
- or download this
[0] # perl parameter_check.pl -ddd -c -b
b is zero length string or equivalent
...
option c:1
Use of uninitialized value in say at parameter_check.pl line 19.
option d:
- or download this
sub getopts ($;$) {
my ($argumentative, $hash) = @_;
...
shift(@ARGV);
}
}