Available in

(1) (1)/fr (1posix) (3perl) (5) (5)/es (5)/fr (5)/it (5)/ja (5)/pl (5)/pt (5)/zh_CN (5)/zh_TW (7) (7)/cs (7)/de (7)/es (7)/fr (7)/hu (7)/it (7)/ja (7)/pl (7)/pt (7)/ru (7)/zh_CN (7)/zh_TW

TOC

locale(3perl)          Perl Programmers Reference Guide          locale(3perl)



NAME

       locale - Perl pragma to use and avoid POSIX locales for built-in
       operations

SYNOPSIS

           @x = sort @y;       # ASCII sorting order
           {
               use locale;
               @x = sort @y;   # Locale-defined sorting order
           }
           @x = sort @y;       # ASCII sorting order again

DESCRIPTION

       This pragma tells the compiler to enable (or disable) the use of POSIX
       locales for built-in operations (LC_CTYPE for regular expressions, and
       LC_COLLATE for string comparison).  Each "use locale" or "no locale"
       affects statements to the end of the enclosing BLOCK.

       See perllocale for more detailed information on how Perl supports
       locales.



perl v5.10.0                      2007-12-18                     locale(3perl)

COMMENTS

Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.