Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have an argument that gives me the message "No parameters given" if I dont put an argument it gives me the message above but how can I get it to prompt me for an argument if not entered at command line so it doesnt exit out of program each time I forget to put an argument at the command line???my $argument = $ARGV[0] || die "No parameters given.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command line argument
by vladb (Vicar) on Jun 03, 2002 at 13:11 UTC | |
by Anonymous Monk on Jun 03, 2002 at 13:40 UTC | |
|
Re: Command line argument
by derby (Abbot) on Jun 03, 2002 at 13:38 UTC | |
|
Re: Command line argument
by tadman (Prior) on Jun 03, 2002 at 13:11 UTC | |
|
Re: Command line argument
by Zaxo (Archbishop) on Jun 03, 2002 at 13:11 UTC | |
|
Re: Command line argument
by Abigail-II (Bishop) on Jun 03, 2002 at 13:44 UTC | |
|
Re: Command line argument
by krujos (Curate) on Jun 03, 2002 at 13:10 UTC | |
by tadman (Prior) on Jun 03, 2002 at 13:13 UTC |