JavaFan at perlmonks.orgRe: using "Getopt::Long" how to check parameter mandatory
by JavaFan on Aug 24, 2010 at 14:46 UTC
QuoteHow can i control this case using Getopt::Long.
As Johan Vromans (author of Getopt::Long) tends to say "mandatory arguments aren't options". Hence, there's no build-in functionality in Getopt::Long to enforce mandatory parameters.
But you can also die afterwards if certain parameters aren't defined.