|P is for Practical|
Re^3: Wisdom on the Getopt::Long moduleby linuxer (Curate)
|on Jul 14, 2010 at 18:35 UTC||Need Help??|
Why did you ignore the hint to avoid <pre>-Tags around your post?
Did you only think about the given code, or did you try it?
You also could have a look at Getopt::Long, which explains what happens, if an option doesn't have its optional argument...
Another possibility is something like this:
It's up to you to refine the checks and values to fit your needs.