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

Owner: Nobody
Requestors: FROGGS.de <email [at] froggs.de>
Cc:
AdminCc:

Severity: (no value)
Tag:
  • Bug
  • Bug
Platform: All
Patch Status: (no value)
VM: (no value)



Subject: [BUG] capturing to lexical variable buggy
Download (untitled) / with headers
text/plain 375b
Here it explodes: my $foo; "abcd" ~~ m/a $foo=(..) d/ rakudo-moar 343474: OUTPUT«===SORRY!===␤QAST::Block with cuid cuid_1_1430941905.97113 has not appeared␤» Here it makes the match fail: my $foo; say "abcd" ~~ m/a $foo=[..] d/ rakudo-moar 343474: OUTPUT«False␤» My guess is that it interpolates the variable instead of treating it as an alias to the capture.


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