|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: Wisdom on the Getopt::Long moduleby linuxer (Deacon) |
| on Jul 14, 2010 at 18:35 UTC ( #849604=note: print w/ replies, xml ) | 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. added:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||