We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4b28c commit ba2cbe8Copy full SHA for ba2cbe8
doc/Type/Str.pod6
@@ -721,8 +721,10 @@ regex, not the C<subst> method call.
721
722
Where C<subst> returns the modified string and leaves the original
723
unchanged, it is possible to mutate the original string by using
724
-C<subst-mutate>. If the match is successful, the method returns a C<Match>
725
-object representing the successful match, or C<Any> otherwise.
+C<subst-mutate>. If the match is successful, the method returns a C<Match>
+object representing the successful match; if C<:g> (or C<:global>) argument
726
+is used, returns a C<List> of C<Match> objects. If no matches happen,
727
+returns C<Any>.
728
729
my $some-string = "Some foo";
730
my $match = $some-string.subst-mutate(/foo/, "string");
0 commit comments