myscript.pl -file -name
And get the error that -file requires a string. In the case here, I don't get the error. I get file set to "-name". In other words, I want getopts to recognize that a switch has followed the one I wanted to take a string instead of a string as a required, so the user does not need to worry about what order s/he puts the switch in.
In reply to Re: Re: Getopts::Long -- changing its behavior
by jonjacobmoon
in thread Getopts::Long -- changing its behavior
by jonjacobmoon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |