[perl #62332] Pair.map leaves $_ undefined in the codeblock parameter in Rakudo

2009-01-15 Thread Carl Mäsak via RT
Andy Bach writes (>): > Hmm: > ./perl6 -e 'my $x = :a<5>; say $x.map({.key, .value + 1}).perl' > ["a", 6] > > ./perl6 -e 'my $x = :a<5>; say $x.map({.key => .value + 1}).perl' > Method 'key' not found for invocant of class 'Failure' > > so it's the 'supercomma' that's troubled? Seems like it. Th

[perl #62332] Pair.map leaves $_ undefined in the codeblock parameter in Rakudo

2009-01-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62332] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62332 > rakudo: my $x = :a<5>; say $x.map({.key => .value + 1}).perl rakudo 35518: OUTPUT«Meth