laziness, impatience, and hubris | |
PerlMonks |
Re: Getopt - Validate arguments before processingby davies (Prior) |
on Jan 30, 2022 at 16:10 UTC ( [id://11140966]=note: print w/replies, xml ) | Need Help?? |
One of my all-time favourite nodes, The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!, shows how to do this with Getopt::Long, which is core. The line that does the job appears in the text and the full example, and is:
Regards, John Davies
In Section
Seekers of Perl Wisdom
|
|