Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

given/when bug

View given.pl
1 2 3 4 5 6 7 8 9 10 11
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.