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";
In reply to Command line argument by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |