NandKishore
Dear All ,
I am a newbie to Perl world. I am trying to create a script get_details.pl which can take 3 different options at runtime -d <Number>, -m <Number>, -a. How do I handle them in my script.
That is user can run this script as follows.
get_details.pl -d <NUMBER>
get_details.pl -m <NUMBER>
get_details.pl -a
These are the only valid options available. Also these options are exclusive that is if the user is using the -d option then they cannot use the -m or -a option. What is the most effecient way of handling this kind of logic. Do I have to always use SHIFT or is there a effecient way out.
Thanks a lot.
Nand Kishore
I am a newbie to Perl world. I am trying to create a script get_details.pl which can take 3 different options at runtime -d <Number>, -m <Number>, -a. How do I handle them in my script.
That is user can run this script as follows.
get_details.pl -d <NUMBER>
get_details.pl -m <NUMBER>
get_details.pl -a
These are the only valid options available. Also these options are exclusive that is if the user is using the -d option then they cannot use the -m or -a option. What is the most effecient way of handling this kind of logic. Do I have to always use SHIFT or is there a effecient way out.
Thanks a lot.
Nand Kishore