summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-08 18:29:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-08 18:29:02 +0000
commit8a4f6ac230f3943b15bcb439d434cc52e5da1bc3 (patch)
tree8aeb8e2cf089fe3975d9c88cb90e8cfc916f593e /pod/perlre.pod
parente8347627432a616ec1485de221b2cd8c9e311c8b (diff)
downloadperl-8a4f6ac230f3943b15bcb439d434cc52e5da1bc3.tar.gz
documentation tweaks from M. J. T. Guy, Micheal Schwern, and
Tim Meadowcroft p4raw-id: //depot/perl@4666
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 1610254da5..9c88a0bd4c 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -936,8 +936,10 @@ in C<[]>, which will match any one character from the list. If the
first character after the "[" is "^", the class matches any character not
in the list. Within a list, the "-" character specifies a
range, so that C<a-z> represents all characters between "a" and "z",
-inclusive. If you want "-" itself to be a member of a class, put it
-at the start or end of the list, or escape it with a backslash. (The
+inclusive. If you want either "-" or "]" itself to be a member of a
+class, put it at the start of the list (possibly after a "^"), or
+escape it with a backslash. "-" is also taken literally when it is
+at the end of the list, just before the closing "]". (The
following all specify the same class of three characters: C<[-az]>,
C<[az-]>, and C<[a\-z]>. All are different from C<[a-z]>, which
specifies a class containing twenty-six characters.)