Unfortunately, that's not a particularly good solution and I wouldn't recommend it to someone researching a similar problem.
My two main issues with this code are the use of symbolic references (i.e. ${"opt_$_"}) and global variables (e.g. @mainOptions, $numOfMain and so on). Adding use strict; and use warnings; to the top of your code will highlight these and other problems.
-- Ken
In reply to Re^3: default hash name for GetOptions
by kcott
in thread default hash name for GetOptions
by equick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |