Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2012 16:07
Show Gist options
  • Save anonymous/1893456 to your computer and use it in GitHub Desktop.
Save anonymous/1893456 to your computer and use it in GitHub Desktop.
my %args = (
foo => 'bar',
(cond(
($answer == 42) { answer => $answer }
($answer) { wrong_answer => 1 }
(otherwise) { no_anwser => 1 }
)),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment