in reply to Getopt::Long Gotcha, request advice

If I want to use default value with Getopt::Long, I do:
GetOptions ( 'item=s' => \my $item = 'default', );
If you want to work with a hash like you do, you can do:
my %pars = ( my $item = item => 'default value', ); GetOptions ( \%pars, "$item=s", );

Abigail