@@ -137,17 +137,17 @@ The lower-case version (X<s///>) substitutes in-place, while the
137
137
upper-case version (X < S/// > ) leaves the original alone and returns
138
138
the resultant string.
139
139
140
- Both operators work on `$_` variable. Since smartmatch operator aliases
141
- the left hand side to `$_` , you can use lowercase ` s///` with it, but
142
- it's a mistake to use it with uppercase ` S///` , because you can't
140
+ Both operators work on C < $_ > variable. Since smartmatch operator aliases
141
+ the left hand side to C < $_ > , you can use lowercase C < s/// > with it, but
142
+ it's a mistake to use it with uppercase C < S/// > , because you can't
143
143
retrieve the modified string. The correct way is to alias the given
144
- string by some other method, such as a ` for` loop or, as is shown in the
145
- example above, with a ` given` block (in this case, it's a postfix form
144
+ string by some other method, such as a C < for > loop or, as is shown in the
145
+ example above, with a C < given > block (in this case, it's a postfix form
146
146
of it, without curly braces).
147
147
148
148
Both operators can take the same adverbs as the
149
- L < .subst method|/routine/subst > , which go between the `s`/`S` and the opening
150
- `/` . Whitespace can be used liberally:
149
+ L < .subst method|/routine/subst > , which go between the C < s > / C < S > and the opening
150
+ C < / > . Whitespace can be used liberally:
151
151
152
152
my $str = 'match string';
153
153
$str ~~ s:g/match/replacement/;
0 commit comments