Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
given/when bug
use v5.14;
my $foo = 13;
given ( $foo ) {
when ( 1..10 ) { say "small" }
when ( 11..20 ) { say "medium" }
when ( 21..30 ) { say "large" }
default { say "unknown" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.