Skip to content

Instantly share code, notes, and snippets.

@dwarring
Created May 30, 2017 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwarring/84be2b06ddf73c7d02f68090f429512c to your computer and use it in GitHub Desktop.
Save dwarring/84be2b06ddf73c7d02f68090f429512c to your computer and use it in GitHub Desktop.
use v6;
enum MyEnum <zero one two three>;
my $a = 3;
given $a {
when one {say "one"}
when two {say "two"}
when three {say "three"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment