New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.subst/.subst-mutate with :g do not set $/ to all the matches #6043
Comments
From @zoffixznetWhen the :g adverb is used with .match, s/// or, S///, the $/ contains a list of match objects <ZoffixW> m: 'fog'.match: :g, /./; say $/ However, the .subst/.subst-mutate methods only return the last match made and not all of them: <ZoffixW> m: 'fog'.subst: :g, /./, 'x'; say $/ I briefly looked at the code and they seem to call match + APPLY-MATCHES just like S/// ops do. |
From @zoffixznetAlso affects :x and :nth modifiers <Zoffix> m: 'mmmmmmm'.subst: :x(1..3), /m/, 'g'; say WHAT $/ |
From @zoffixznetOn Wed, 22 Mar 2017 13:58:22 -0700, cpan@zoffix.com wrote:
Thank you for the report. This is now fixed. Fix: rakudo/rakudo@874fcdda2dc469f |
@zoffixznet - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#130688 (status was 'resolved')
Searchable as RT130688$
The text was updated successfully, but these errors were encountered: