Skip Menu |
Report information
Id: 130600
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: LAST is called when it shouldn't be (my $x = do while (1) { LAST { die ‘hello’ }; })
Download (untitled) / with headers
text/plain 457b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org