develooper Front page | perl.perl6.compiler | Postings from March 2018

[perl #130688] [BUG] .subst/.subst-mutate with :g do not set $/ toall the matches

Thread Previous
From:
Zoffix Znet via RT
Date:
March 8, 2018 05:42
Subject:
[perl #130688] [BUG] .subst/.subst-mutate with :g do not set $/ toall the matches
Message ID:
rt-4.0.24-17718-1520487733-649.130688-15-0@perl.org
On Wed, 22 Mar 2017 13:58:22 -0700, cpan@zoffix.com wrote:
> Also affects :x and :nth modifiers
> 
> <Zoffix> m: 'mmmmmmm'.subst: :x(1..3), /m/, 'g'; say WHAT $/
> <camelia> rakudo-moar 6a77cd: OUTPUT: «(Match)␤»
> <Zoffix> m: 'mmmmmmm'.subst: :nth(1..3), /m/, 'g'; say WHAT $/
> <camelia> rakudo-moar 6a77cd: OUTPUT: «(Match)␤»

Thank you for the report. This is now fixed.

Fix:  https://github.com/rakudo/rakudo/commit/874fcdda2dc469f
Test: https://github.com/perl6/roast/commit/af02dd68eb7569b91

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About