5 locale - Perl pragma to use and avoid POSIX locales for built-in operations
9 @x = sort @y; # ASCII sorting order
12 @x = sort @y; # Locale-defined sorting order
14 @x = sort @y; # ASCII sorting order again
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.
23 See L<perllocale> for more detailed information on how Perl supports
28 $locale::hint_bits
= 0x4;
31 $^H
|= $locale::hint_bits
;
35 $^H
&= ~$locale::hint_bits
;