# New Ticket Created by Itsuki Toyota # Please include the string: [perl #127879] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127879 >
See the following results. $ echo "h o g e" | perl6 -e 'for $*IN.lines -> $line { $line.split(" ").map(-> $e { $e.perl.say; }) };' # map ignores the input $ echo "h o g e" | perl6 -e 'for $*IN.lines -> $line { $line.split(" ").perl.say };' # ensure the input sequence ("h", "o", "g", "e") $ perl6 -e '("h", "o", "g", "e").map(->$e { $e.perl.say });' # ordinary case "h" "o" "g" "e" The 1st example seems that map subroutine ignores the input sequence. I think that the 1st example should return the same result as the 3rd example. My rakudo version is $ perl6 -v This is Rakudo version 2016.03 built on MoarVM version 2016.03 implementing Perl 6.c.