Skip to content

Instantly share code, notes, and snippets.

@softmoth
Created September 7, 2012 06:38
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 softmoth/3663869 to your computer and use it in GitHub Desktop.
Save softmoth/3663869 to your computer and use it in GitHub Desktop.
Equivalent Pair literals in list context
# These are all equivalent: a list of three Pairs
@foo = 'one' => 1, 'two' => 'ii', 'one' => { say "ॐ" }
@foo = one => 1, two => 'ii', one => { say "ॐ" }
@foo = :one(1), :two<ii>, :one({ say "ॐ" })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment