Hi,
I am using Getopt::Long to accept the command line arguments.
Logic
---------
I have two mandatory options.
1.mod1_num
2.mod2_num
Both of them can accept either a 3digit number or another parameter
"preserve" which inturn accepts a 3digit number.
eg: my_script -mod1_num 123 -mod2_num 234
my_script -mod1_num -preserve 123 mod2_num 234
If "preserve" is used with "mod1_num" it cannot be used with
"mod2_num" and viceversa.
How to do this with GetOptions? Please help me.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/