GetOptions does not return a false result when an option is not supplied
That's why they're called 'options'.
What you might want to try is to set a default variable to 0 that is changed to a 1 when any option is passed. (or vice versa), and then calling the usage sub appropriately.
-enlil
In reply to Re: Making Getopt::Long tell me if no parameters passed
by Enlil
in thread Making Getopt::Long tell me if no parameters passed
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |