in reply to default hash name for GetOptions
Firstly, I'm assuming you're using Getopt::Long.
Take a look at the Legacy - Default destinations section. There's an example there of using a @ destination type to produce a @opt_XXX array; I'm guessing a % destination type may produce the %opt_XXX you're after.
As this is legacy code that remains for backward compatibility, I'd recommend you look at newer ways of achieving what you want using this module.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: default hash name for GetOptions
by equick (Acolyte) on Nov 28, 2010 at 10:49 UTC | |
by kcott (Archbishop) on Nov 29, 2010 at 02:17 UTC |