Created
September 28, 2017 19:36
-
-
Save anonymous/868e1d6fd70ef33f32b42b87bf20f005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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