Hello,
I think I'm getting close to the solution...
What I'd like to do is be able to pass to the perl program either 1, 2 or no arguements and of the two passed maybe allow them to be in either order....
Example:
Perl userquery.pl myname -v
or
Perl userquery.pl -v myname
-v for verbose
if they dont pass a username, I will ask for one in the script. This means they could just do:
perl userquery.pl -v
not sure which to persue so far, something using a while @ARGV or using SHIFT...
I'll keep working on it, thanks for any help!
I think I'm getting close to the solution...
What I'd like to do is be able to pass to the perl program either 1, 2 or no arguements and of the two passed maybe allow them to be in either order....
Example:
Perl userquery.pl myname -v
or
Perl userquery.pl -v myname
-v for verbose
if they dont pass a username, I will ask for one in the script. This means they could just do:
perl userquery.pl -v
not sure which to persue so far, something using a while @ARGV or using SHIFT...
I'll keep working on it, thanks for any help!