# New Ticket Created by Minimiscience # Please include the string: [perl #67700] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=67700 >
The line "say (^10).map: { $^n * 2 + 1 }.perl" yields the error "Parameter type check failed; expected something matching Callable() but got something of type Str() for expr in call to map" when parsed, indicating that the .perl is being treated as a method call on the block. However, S12 clearly states: > Also note that if any term in a list is a bare closure or pointy sub, > it will be considered to be the final argument of its list unless the > closure’s right curly is followed immediately by comma or colon. In > particular, a method call does *not* extend the list, so you can say: > > @list.grep: { $_ % 2 }.map: { $_ − 1 }.say > > and that will be taken as equivalent to > > @list.grep({ $_ % 2 }).map({ $_ − 1 }).say This problem was observed on Rakudo Perl #18 ("Pittsburgh") with revision 39599 of Parrot on Mac OS X 10.5.6.