Compare the wincred helper against its original in compat.
[msysgit.git] / lib / perl5 / 5.8.8 / locale.pm
bloba51e2b1c097582b4b46fe208bbbc1d8109acaa54
1 package locale;
3 our $VERSION = '1.00';
5 =head1 NAME
7 locale - Perl pragma to use and avoid POSIX locales for built-in operations
9 =head1 SYNOPSIS
11 @x = sort @y; # ASCII sorting order
13 use locale;
14 @x = sort @y; # Locale-defined sorting order
16 @x = sort @y; # ASCII sorting order again
18 =head1 DESCRIPTION
20 This pragma tells the compiler to enable (or disable) the use of POSIX
21 locales for built-in operations (LC_CTYPE for regular expressions, and
22 LC_COLLATE for string comparison). Each "use locale" or "no locale"
23 affects statements to the end of the enclosing BLOCK.
25 See L<perllocale> for more detailed information on how Perl supports
26 locales.
28 =cut
30 $locale::hint_bits = 0x4;
32 sub import {
33 $^H |= $locale::hint_bits;
36 sub unimport {
37 $^H &= ~$locale::hint_bits;