in reply to using "Getopt::Long" how to check parameter mandatory
How 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using "Getopt::Long" how to check parameter mandatory
by DrWhy (Chaplain) on Aug 24, 2010 at 21:39 UTC | |
by JavaFan (Canon) on Aug 24, 2010 at 22:06 UTC |