in reply to Re: Re: use strict; and command line options
in thread use strict; and command line options
# method 1 use strict; die "you must provide command-line parameters" if ! @ARGV; print "command-line option: $_\n" for @ARGV; # method 2 use strict; use Getopt::Long; GetOptions ( 'useTR' => \{ my $useTR = 0 }, ); unless ( defined $useTR ) { die "Usage: $0 -useTR"; } # Then you use the $useTR variable onwards
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: use strict; and command line options
by hehenoobhehe (Novice) on Feb 11, 2004 at 03:45 UTC | |
|
Re: use strict; and command line options
by Abigail-II (Bishop) on Feb 11, 2004 at 10:39 UTC | |
by Roger (Parson) on Feb 11, 2004 at 10:48 UTC |