in reply to give/when/ usage
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: give/when/ usage
by mike65535 (Novice) on Dec 02, 2015 at 19:37 UTC |