diff options
author | Atsushi SUGAWARA <peanutsjamjam@gmail.com> | 2020-04-07 00:24:54 +0900 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-04-06 13:25:37 -0600 |
commit | 4f9245d4b77ace5737c8c493c79f0dcb23e51f2a (patch) | |
tree | 50fbd57de54c396a2831ed6e97c961faf9720948 /pod | |
parent | bfde97e001cac6d787c92149426f99821a4c69f0 (diff) | |
download | perl-4f9245d4b77ace5737c8c493c79f0dcb23e51f2a.tar.gz |
Fix typo in perlretut.pod. C<'$'> to C<$'>.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlretut.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 72e23d0d3b..c3ca31e097 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -939,7 +939,7 @@ prints Even if there are no groupings in a regexp, it is still possible to find out what exactly matched in a string. If you use them, Perl will set C<$`> to the part of the string before the match, will set C<$&> -to the part of the string that matched, and will set C<'$'> to the part +to the part of the string that matched, and will set C<$'> to the part of the string after the match. An example: $x = "the cat caught the mouse"; @@ -951,7 +951,7 @@ first character position in the string and stopped; it never saw the second "the". If your code is to run on Perl versions earlier than -5.20, it is worthwhile to note that using C<$`> and C<'$'> +5.20, it is worthwhile to note that using C<$`> and C<$'> slows down regexp matching quite a bit, while C<$&> slows it down to a lesser extent, because if they are used in one regexp in a program, they are generated for I<all> regexps in the program. So if raw @@ -968,7 +968,7 @@ variables may be used. These are only set if the C</p> modifier is present. Consequently they do not penalize the rest of the program. In Perl 5.20, C<${^PREMATCH}>, C<${^MATCH}> and C<${^POSTMATCH}> are available whether the C</p> has been used or not (the modifier is ignored), and -C<$`>, C<'$'> and C<$&> do not cause any speed difference. +C<$`>, C<$'> and C<$&> do not cause any speed difference. =head2 Non-capturing groupings |