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


<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.

Reply via email to