in reply to Getting Getopt::Long values into a hash
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Getopt::Long values into a hash
by jeanluca (Deacon) on Nov 08, 2005 at 14:19 UTC | |
by fishbot_v2 (Chaplain) on Nov 08, 2005 at 14:33 UTC | |
by jeanluca (Deacon) on Nov 08, 2005 at 15:21 UTC | |
by fishbot_v2 (Chaplain) on Nov 08, 2005 at 16:01 UTC | |
by jeanluca (Deacon) on Nov 08, 2005 at 16:51 UTC |