And you'll see that the key 'h' _is_ being created, and the value is undef, which is why your if statements don't pick it up, since it's a false value. This will do what you want:use Data::Dumper; print Dumper $o;
usage() if exists $o->{h};
In reply to Re: getopt::std help
by davidrw
in thread getopt::std help
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |