Skip to content

Commit 2efb450

Browse files
committed
perlrecharclass.pod: Make clear that $, has been assigned to
For: #17892
1 parent 4dd5808 commit 2efb450

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pod/perlrecharclass.pod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ place before the bracketed class is parsed:
529529
$, = "\t| ";
530530
$a =~ m'[$,]'; # single-quotish: matches '$' or ','
531531
$a =~ q{[$,]}' # same
532-
$a =~ m/[$,]/; # double-quotish: matches "\t", "|", or " "
532+
$a =~ m/[$,]/; # double-quotish: Because we made an
533+
# assignment to $ above, this now
534+
# matches "\t", "|", or " "
533535

534536
Characters that may carry a special meaning inside a character class are:
535537
C<\>, C<^>, C<->, C<[> and C<]>, and are discussed below. They can be

0 commit comments

Comments
 (0)