develooper Front page | perl.perl6.users | Postings from December 2019

where is my map typo?

Thread Next
ToddAndMargo via perl6-users
December 4, 2019 10:18
where is my map typo?
Message ID:
Hi All,

I am going through the examples on

$ p6 "my $map ='a', 1, 'b', 2); say $map{'a'}; say $map{ 'a', 
'b' };"
===SORRY!=== Error while compiling -e
Malformed my
at -e:1
------> my⏏  ='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 :=
and the second example
      $e =

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About