equick has asked for the wisdom of the Perl Monks concerning the following question:
I want to use GetOptions('foo','bar'), which provides default variables $opt_foo and $opt_bar.
Is there also a default hash provided with this call such as $opts{foo} ? I realise I could do GetOptions(\%opts,'foo','bar') but that doesn't create $opt_foo or $opt_bar.
Thanks for any help.
Ed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: default hash name for GetOptions
by kcott (Archbishop) on Nov 28, 2010 at 01:12 UTC | |
by equick (Acolyte) on Nov 28, 2010 at 10:49 UTC | |
by kcott (Archbishop) on Nov 29, 2010 at 02:17 UTC |