# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #128398]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128398 >


$ perl6 --version
This is Rakudo version 2016.05-115-g8430f07 built on MoarVM version
2016.05-17-g6075599
implementing Perl 6.c.

$ perl6 -e 'for 1, 2, 3 { last if /2/; say $_; LAST { say "hi" } }'
1
hi

$ cat > numbers
1
2
3

$ <numbers perl6 -ne 'last if /2/; say $_; LAST { say "hi" }'
1

Both loops correctly `last` before printing "2\n". But the -n loop
doesn't run the `LAST` phaser, for some reason. I expected it to.

Reply via email to