in reply to Making Getopt::Long tell me if no parameters passed
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Making Getopt::Long tell me if no parameters passed
by ibanix (Hermit) on Dec 17, 2002 at 04:06 UTC | |
by Aristotle (Chancellor) on Dec 17, 2002 at 11:58 UTC |