Is there anything wrong with:
given( $ARGV[0] ) { when (/^(foo|0)$/i) {do this} when (/^(goo|1)$/i) {do that} }
PS. You do know that given/when is experimental?
In reply to Re: give/when/ usage
by hippo
in thread give/when/ usage
by mike65535
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |