Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2017 19: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 anonymous/868e1d6fd70ef33f32b42b87bf20f005 to your computer and use it in GitHub Desktop.
Save anonymous/868e1d6fd70ef33f32b42b87bf20f005 to your computer and use it in GitHub Desktop.
[jdv@new-host-2 ~]$ cat test.pl6
use v6;
my $foo = <bar baz>;
say $foo.perl;
class Meh { has @.arr; }
say Meh.new(|%{ arr => $foo});
say Meh.new(arr => |$foo);
[jdv@new-host-2 ~]$ perl6 test.pl6
$("bar", "baz")
Meh.new(arr => [("bar", "baz"),])
Meh.new(arr => ["bar", "baz"])
[jdv@new-host-2 ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment