# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #130600]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130600 >


First of all, consider this snippet:

Code:
my $x = do while (1) { 42 }; say $x[^10]

Result:
(42 42 42 42 42 42 42 42 42 42)



And now look at this:

Code:
my $x = do while (1) { LAST { say ‘hello’ }; }

Result:
hello



And this:

Code:
my $x = do while (1) { LAST { say ‘hello’ } }; say $x[^10]

Result:
hello
No such method '!capture_phasers' for invocant of type 'Code'
  in block <unit> at /tmp/mmzjeI1jE1 line 1



Does not look quite right.

Reply via email to