summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2020-07-17 21:08:59 +0000
committerKarl Williamson <khw@cpan.org>2020-07-30 15:24:42 -0600
commit25cf87333c1d02676a477d8393457b0024eb4a0a (patch)
tree934958ecfd62fd63e6ab71bbe17aca3d76399b7a
parent56249513acd108e9cb2a871d24b6ebfdc56c3503 (diff)
downloadperl-25cf87333c1d02676a477d8393457b0024eb4a0a.tar.gz
perlrecharclass.pod: Make clear that $, has been assigned to
Correct typo spotted by Dan Book. For: https://github.com/Perl/perl5/issues/17892
-rw-r--r--pod/perlrecharclass.pod4
1 files changed, 3 insertions, 1 deletions
diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod
index ee2f14d8ff..5802819c21 100644
--- a/pod/perlrecharclass.pod
+++ b/pod/perlrecharclass.pod
@@ -529,7 +529,9 @@ place before the bracketed class is parsed:
$, = "\t| ";
$a =~ m'[$,]'; # single-quotish: matches '$' or ','
$a =~ q{[$,]}' # same
- $a =~ m/[$,]/; # double-quotish: matches "\t", "|", or " "
+ $a =~ m/[$,]/; # double-quotish: Because we made an
+ # assignment to $, above, this now
+ # matches "\t", "|", or " "
Characters that may carry a special meaning inside a character class are:
C<\>, C<^>, C<->, C<[> and C<]>, and are discussed below. They can be