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
In reply to Re: default hash name for GetOptions
by kcott
in thread default hash name for GetOptions
by equick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |