|Perl Monk, Perl Meditation|
Re: GetOpts::long Multiple Parameters per optionby broomduster (Priest)
|on Feb 06, 2011 at 23:42 UTC||Need Help??|
I think you're making this too complicated. Check the docs for Getopt::Long. The last part of the section Options with multiple values shows how to do what you want.
On the command line:
This example specifies exactly two arguments/parameters for each option, but note that you can specify a range for the number of options, if needed.