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

Owner: Nobody
Requestors: lue <rnddim [at] gmail.com>
Cc:
AdminCc:

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



Subject: Regex :p modifier doesn't anchor to $/.to by default
Download (untitled) / with headers
text/plain 499b
<lue> r: my $a = "LOHELLO"; say $a ~~ /EL/; $a .= subst(/LO/, "HI", :p); say $a <camelia> rakudo-parrot 230a54, rakudo-jvm 230a54, rakudo-moar 230a54: OUTPUT«「EL」␤␤LOHELLO␤» <lue> r: my $a = "LOHELLO"; say $a ~~ /EL/; $a .= subst(/LO/, "HI", :p($/.to)); say $a <camelia> rakudo-parrot 230a54, rakudo-jvm 230a54, rakudo-moar 230a54: OUTPUT«「EL」␤␤LOHELHI␤» * lue files rakudobug By default, :p is defined to be ($/ ?? $/.to !! 0) , however this does not appear to be the case.


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