Created
September 28, 2017 19:36
Star
You must be signed in to star a gist
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