Link to home
Start Free TrialLog in
Avatar of NewtonianB
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.
SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial