##
# this code does not work !
# it will say "something else"
given($data) {
when (1) { continue; };
when (2) { say 'one or two' ; };
default { say 'something else'; };
}
##
##
# this works, is shorter and easier to read
given($data) {
when ([ 1, 2]) { say 'one or two' ; };
default { say 'something else'; };
}