Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created May 30, 2017 01:00
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 zoffixznet/1fe539715b0332be7361990785b0dd87 to your computer and use it in GitHub Desktop.
Save zoffixznet/1fe539715b0332be7361990785b0dd87 to your computer and use it in GitHub Desktop.
use v6;
enum MyEnum (one => 1, '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