NewtonianB
asked on
perl flags
How can I make my script understand flags?
as in
perl myscript.pl --flag1=0 --flag2=0
I would like to use flags instead of simple arguments because each of my arguments have defaults and if the user only wants to specify flag2, I don't want to force him/her to have to specify flag1 too as the default should be used.
as in
perl myscript.pl --flag1=0 --flag2=0
I would like to use flags instead of simple arguments because each of my arguments have defaults and if the user only wants to specify flag2, I don't want to force him/her to have to specify flag1 too as the default should be used.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.