Hi All, I am going through the examples on https://docs.perl6.org/type/Map.html
$ p6 "my $map = Map.new('a', 1, 'b', 2); say $map{'a'}; say $map{ 'a', 'b' };"
===SORRY!=== Error while compiling -e
Malformed my
at -e:1
------> my⏏ = Map.new('a', 1, 'b', 2); say {'a'};
What the heck is a 'Malformed my"? I copied and pasted
from the second set of examples.
And why is the first example:
%e := Map.new
and the second example
$e = Map.new
?
Many thanks,
-T
