Skip to content

Instantly share code, notes, and snippets.

@bduggan
Created March 22, 2017 13:26
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 bduggan/181d367cc08baca839edfc497587080a to your computer and use it in GitHub Desktop.
Save bduggan/181d367cc08baca839edfc497587080a to your computer and use it in GitHub Desktop.
sub foo {
my @a = 1, 2;
my @b = 3, 4;
return @a, @b;
}
my (@c, @d) = foo();
say @c.perl;
say @d.perl;
# [[1, 2], [3, 4]]
# []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment