summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-08-12 18:42:35 +0300
committerGurusamy Sarathy <gsar@cpan.org>1998-09-23 03:20:13 +0000
commit8ada0baa1f731edbe470a7630cfeb30c131b4672 (patch)
tree878d7ca51320e5fb9ab9f95b0c13c54031deddad /pod/perlre.pod
parent4beedc23b598a493399ba23c8c4bd5448e52283a (diff)
downloadperl-8ada0baa1f731edbe470a7630cfeb30c131b4672.tar.gz
apply minimal variant of patch (sent via private mail)
Message-Id: <199808121242.PAA29761@comanche.spices> Subject: [PATCH] 5.004_02 or 5.005_51: fix regexp and tr character ranges in non-ASCII lands p4raw-id: //depot/perl@1803
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 1b49ba4e7b..f696525155 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -735,6 +735,13 @@ 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.)
+Note also that the whole range idea is rather unportable between
+character sets--and even within character sets they may cause results
+you probably didn't expect. A sound principle is to use only ranges
+that begin from and end at either alphabets of equal case ([a-e],
+[A-E]), or digits ([0-9]). Anything else is unsafe. If in doubt,
+spell out the character sets in full.
+
Characters may be specified using a metacharacter syntax much like that
used in C: "\n" matches a newline, "\t" a tab, "\r" a carriage return,
"\f" a form feed, etc. More generally, \I<nnn>, where I<nnn> is a string