File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -911,9 +911,10 @@ regex, not the C<subst> method call.
911
911
Where L < subst > returns the modified string and leaves the original
912
912
unchanged, it is possible to mutate the original string by using
913
913
C < subst-mutate > . If the match is successful, the method returns a L < Match >
914
- object representing the successful match; if C < :g > (or C < :global > ) argument
915
- is used, returns a L < List > of L < Match > objects. If no matches happen,
916
- returns L < Nil > .
914
+ object representing the successful match, otherwise returns L < Nil > . If C < :nth >
915
+ (or one of its aliases) with L < Iterable > value, C < :g > , C < :global > , or C < :x >
916
+ arguments are used, returns a L < List > of L < Match > objects, or an empty L < List >
917
+ if no matches occured.
917
918
918
919
my $some-string = "Some foo";
919
920
my $match = $some-string.subst-mutate(/foo/, "string");
You can’t perform that action at this time.
0 commit comments