use Hash::Util qw/lock_keys/;; my %pars = ( item => 'default', ); lock_keys(%pars);
And now, at least, you'll get an exception when you try to pass 'items' or any uniq abbreviation (like 'item') on the c-line, or if you mispell the key anywhere else!
In reply to Re: Getopt::Long Gotcha, request advice
by Anonymous Monk
in thread Getopt::Long Gotcha, request advice
by kesterkester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |