ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



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



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 opera-tions operations
       tions (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.8.8                                      2001-09-21                                      locale(3pm)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.