1locale(3pm) Perl Programmers Reference Guide locale(3pm)
2
3
4
6 locale - Perl pragma to use and avoid POSIX locales for built-in
7 operations
8
10 @x = sort @y; # ASCII sorting order
11 {
12 use locale;
13 @x = sort @y; # Locale-defined sorting order
14 }
15 @x = sort @y; # ASCII sorting order again
16
18 This pragma tells the compiler to enable (or disable) the use of POSIX
19 locales for built-in operations (LC_CTYPE for regular expressions, and
20 LC_COLLATE for string comparison). Each "use locale" or "no locale"
21 affects statements to the end of the enclosing BLOCK.
22
23 See perllocale for more detailed information on how Perl supports
24 locales.
25
26
27
28perl v5.12.4 2011-06-01 locale(3pm)