summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-07-09 15:12:36 -0600
committerKarl Williamson <public@khwilliamson.com>2012-07-24 21:13:48 -0600
commit5d63e270c7517cfe712f86e624bb138fd37fcd69 (patch)
treef6c7dd5b7ed1943bf078b464c7b76b24fedc5bf2 /pod
parent8ad3d40fd251e4b08593bc80fec6f1c11a187af8 (diff)
downloadperl-5d63e270c7517cfe712f86e624bb138fd37fcd69.tar.gz
perllocale: Mention that \n doesn't change for locales
Diffstat (limited to 'pod')
-rw-r--r--pod/perllocale.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perllocale.pod b/pod/perllocale.pod
index c14120a79c..052db49456 100644
--- a/pod/perllocale.pod
+++ b/pod/perllocale.pod
@@ -678,6 +678,12 @@ to your surprise--that "|" moves from the ispunct() class to isalpha().
Unfortunately, this creates big problems for regular expressions. "|" still
means alternation even though it matches C<\w>.
+Note that there are quite a few things that are unaffected by the
+current locale. All the escape sequences for particular characters,
+C<\n> for example, always mean the platform's native one. This means,
+for example, that C<\N> in regular expressions (every character
+but new-line) work on the platform character set.
+
B<Note:> A broken or malicious C<LC_CTYPE> locale definition may result
in clearly ineligible characters being considered to be alphanumeric by
your application. For strict matching of (mundane) ASCII letters and