summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-18 09:35:52 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-21 10:02:55 -0700
commit66cbab2c91fca8c9abc65a7231a053898208efe3 (patch)
treecb9e838d32b251f9f52082d29bb7009f074d192f /pod/perlop.pod
parente439cacbc5a93fb9e6c524e31ac41772af51dfa0 (diff)
downloadperl-66cbab2c91fca8c9abc65a7231a053898208efe3.tar.gz
Add :not_characters parameter to 'use locale'
This adds the parameter handling, tests, and documentation for this new feature which allows locale and Unicode to play well with each other.
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 607f631d45..369164af95 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -484,7 +484,8 @@ is described in the next section.
X<~~>
"lt", "le", "ge", "gt" and "cmp" use the collation (sort) order specified
-by the current locale if a legacy C<use locale> is in effect. See
+by the current locale if a legacy C<use locale> (but not
+C<use locale ':not_characters'>) is in effect. See
L<perllocale>. Do not mix these with Unicode, only with legacy binary
encodings. The standard L<Unicode::Collate> and
L<Unicode::Collate::Locale> modules offer much more powerful solutions to
@@ -1509,7 +1510,8 @@ C<\E> for each. For example:
say"This \Qquoting \ubusiness \Uhere isn't quite\E done yet,\E is it?";
This quoting\ Business\ HERE\ ISN\'T\ QUITE\ done\ yet\, is it?
-If C<use locale> is in effect, the case map used by C<\l>, C<\L>,
+If C<use locale> is in effect (but not C<use locale ':not_characters'>),
+the case map used by C<\l>, C<\L>,
C<\u>, and C<\U> is taken from the current locale. See L<perllocale>.
If Unicode (for example, C<\N{}> or code points of 0x100 or
beyond) is being used, the case map used by C<\l>, C<\L>, C<\u>, and