Skip to content

Instantly share code, notes, and snippets.

@berekuk
Created June 9, 2012 22:57
Show Gist options
  • Select an option

  • Save berekuk/2902932 to your computer and use it in GitHub Desktop.

Select an option

Save berekuk/2902932 to your computer and use it in GitHub Desktop.
mmcleric@mmbook:~$ perl -E 'sub f { (5,6) }; say 6 ~~ f()'
1
mmcleric@mmbook:~$ perl -E 'my @x = (5,6); sub f { @x }; say 6 ~~ f()'
mmcleric@mmbook:~$ perl -E 'my @x = (5,6); sub f { @x }; say 2 ~~ f()'
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment