Are you looking for this?
$getoptret = $p->getoptions( \%my_hash, 'house', 'dog|d:s' );If you want more control over where things are stored you could also do something like:
$getoptret = $p->getoptions( 'house' => \$my_hash{house}, 'dog|d:s' => \$my_hash{mutt}, );
Edit: D'oh, too slow
Good Day,
Dean
In reply to Re: Getting Getopt::Long values into a hash
by duelafn
in thread Getting Getopt::Long values into a hash
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |