Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use v6;
- enum MyEnum <one, two, three>;
- my $a = 3;
- given $a {
- when (one.value+1) {say "one"}
- when (two.value+1) {say "two"}
- when (three.value+1) {say "three"}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement