File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1612,7 +1612,7 @@ backslash C<\> or included in quotes:
1612
1612
1613
1613
Note that the matching restrictions generally only apply to the left-hand side of the
1614
1614
substitution expression, but some special characters or combinations of them may need
1615
- to be escaped. For example
1615
+ to be escaped in the right-hand side (RHS) . For example
1616
1616
1617
1617
$_ = 'foo';
1618
1618
s/foo/\%(/;
@@ -1624,7 +1624,9 @@ or escape the '(' instead for the same result
1624
1624
.say # OUTPUT: «%(»
1625
1625
1626
1626
but using either character alone does not require escaping. Forward slashes will need
1627
- to be escaped, but escaping alphanumeric characters will cause them to be ignored.
1627
+ to be escaped, but escaping alphanumeric characters will cause them to be ignored. (NOTE:
1628
+ This RHS limitation was only recently noticed and this is not yet an exhaustive list of all characters
1629
+ or character pairs that require escapes for the RHS.)
1628
1630
1629
1631
By default, substitutions are only done on the first match:
1630
1632
You can’t perform that action at this time.
0 commit comments