File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -862,9 +862,7 @@ Returns the invocant string where C<$matcher> is replaced by C<$replacement>
862
862
863
863
There is an in-place syntactic variant of C < subst > spelled
864
864
L « C < s/matcher/replacement/ > |/syntax/s$SOLIDUS%20$SOLIDUS%20$SOLIDUS» and with
865
- adverb following the C < s > or inside the matcher, as well as the
866
- L « C < .subst-mutate > method|/routine/subst-mutate» which modifies the string
867
- in-place.
865
+ adverb following the C < s > or inside the matcher.
868
866
869
867
C < $matcher > can be a L < Regex > , or a literal C < Str > . Non-Str matcher arguments
870
868
of type L < Cool > are coerced to C < Str > for literal matching.
@@ -948,6 +946,11 @@ The C<:nth> adverb has readable English-looking variants:
948
946
949
947
= head2 method subst-mutate
950
948
949
+ B < NOTE: > I <<< C < .subst-mutate > will be deprecated in future language
950
+ versions. You can use L < subst > with
951
+ L « C < .= > method call assignment operator|/routine/.=.html» or
952
+ L « C < s/// > substitution operator|/syntax/s$SOLIDUS$SOLIDUS$SOLIDUS» instead. >>>
953
+
951
954
Where L < subst > returns the modified string and leaves the original
952
955
unchanged, it is possible to mutate the original string by using
953
956
C < subst-mutate > . If the match is successful, the method returns a L < Match >
You can’t perform that action at this time.
0 commit comments