dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
As that stands, the option will be put into either $options{length} or $options{height}. Is there some way I can force Getopt::Long to always put it into $options{length}?my %options; GetOptions( \%options, 'length|height=i', );
(And, yes, I've RTFM'ed. It talks about synonyms and it talks about hashrefs, but it doesn't talk about synonyms and hashrefs together.)
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another Getopt::Long questions
by Enlil (Parson) on Apr 09, 2003 at 23:46 UTC | |
by kelan (Deacon) on Apr 10, 2003 at 14:42 UTC | |
|
Re: Another Getopt::Long questions
by Ovid (Cardinal) on Apr 09, 2003 at 23:46 UTC | |
|
Re: Another Getopt::Long questions
by dragonchild (Archbishop) on Apr 10, 2003 at 14:12 UTC |