Merge branch 'master' of http://repo.or.cz/r/msysgit into devel
[msysgit/historical-msysgit.git] / lib / perl5 / 5.6.1 / locale.pm
blobed87687334ebfd02764cfa451d9e64f28965bfbc
1 package locale;
3 =head1 NAME
5 locale - Perl pragma to use and avoid POSIX locales for built-in operations
7 =head1 SYNOPSIS
9 @x = sort @y; # ASCII sorting order
11 use locale;
12 @x = sort @y; # Locale-defined sorting order
14 @x = sort @y; # ASCII sorting order again
16 =head1 DESCRIPTION
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
24 locales.
26 =cut
28 $locale::hint_bits = 0x4;
30 sub import {
31 $^H |= $locale::hint_bits;
34 sub unimport {
35 $^H &= ~$locale::hint_bits;