Ammu has asked for the wisdom of the Perl Monks concerning the following question:
Hi i am using Getopt to accept the debug parameters.But it sholud be within the range 1-4.Can anyone tell me how to include the ange in Getopt?
Getopt::Long::GetOptions( 'd=i' => \$_debug) or usage("Invalid commmand line options.");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Range in Getopt
by james2vegas (Chaplain) on Oct 03, 2012 at 06:16 UTC | |
by roho (Bishop) on Oct 03, 2012 at 13:26 UTC | |
by james2vegas (Chaplain) on Oct 03, 2012 at 18:34 UTC | |
Re: Range in Getopt
by NetWallah (Canon) on Oct 03, 2012 at 05:32 UTC | |
Re: Range in Getopt
by dasgar (Priest) on Oct 03, 2012 at 06:48 UTC | |
Re: Range in Getopt
by Discipulus (Canon) on Oct 03, 2012 at 07:53 UTC | |
Re: Range in Getopt
by toolic (Bishop) on Oct 03, 2012 at 13:54 UTC |
Back to
Seekers of Perl Wisdom