Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My question is if there is a sophisticated and safe way to for my script to be able to recognize if the user has specified an argument in the -p , the -f, the -a or the -d options that are available.perl MY_SCRIPT.pl -p <program to run> -f <file1> -a <file2> -d <parame +ters file>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to read the arguments in command line?
by GrandFather (Saint) on Jul 22, 2012 at 22:19 UTC | |
|
Re: How to read the arguments in command line?
by tobyink (Canon) on Jul 22, 2012 at 22:20 UTC | |
by Anonymous Monk on Jul 22, 2012 at 22:29 UTC |