PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
Iīm searching of a way to automatically show usage information, if the user happens to give in wrong commandline options. I assumed (from experiments), that $result is the number of successfully parsed options and undef in case of a error. It is not :-(
Very (seems useless) behaviour of $result:
undef if one false input
1 if one ok input
undef if two ok inputs
??? enlighten me please
Ciao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getopt::Long return value
by davorg (Chancellor) on Jun 25, 2001 at 18:32 UTC | |
|
Re: Getopt::Long return value
by Hofmator (Curate) on Jun 25, 2001 at 18:36 UTC | |
|
Re: Getopt::Long return value
by bikeNomad (Priest) on Jun 25, 2001 at 18:42 UTC | |
by PetaMem (Priest) on Feb 15, 2004 at 17:07 UTC | |
|
Re: Getopt::Long return value
by bikeNomad (Priest) on Jun 26, 2001 at 20:21 UTC | |
|
Re: Getopt::Long return value
by PetaMem (Priest) on Jun 26, 2001 at 00:07 UTC | |
by bikeNomad (Priest) on Jun 26, 2001 at 00:40 UTC | |
by PetaMem (Priest) on Jun 26, 2001 at 01:30 UTC | |
by Anonymous Monk on Jun 26, 2001 at 01:25 UTC | |
by bikeNomad (Priest) on Jun 26, 2001 at 06:48 UTC | |
by PetaMem (Priest) on Jun 26, 2001 at 10:48 UTC |