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
    Yes, I'm aware it's experimental.
    Just trying to play with it at this point - and I'm fully noob so most of what gets written is experimental anyway!
    Thanks.