Skip to content

Instantly share code, notes, and snippets.

@perlpilot
Created November 16, 2010 16:36
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 perlpilot/702034 to your computer and use it in GitHub Desktop.
Save perlpilot/702034 to your computer and use it in GitHub Desktop.
my enum Seasons «:Spring(10000) Summer Autumn Winter»;
my @seasons{Seasons};
maps to
@seasons{Spring} ------> @seasons[0]
@seasons{Summer} ------> @seasons[1]
@seasons{Autumn} ------> @seasons[2]
@seasons{Winter} ------> @seasons[3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment