<?xml version="1.0" encoding="windows-1252"?>
<node id="1143" title="perlman:lib:locale" created="1999-12-22 19:49:31" updated="2005-08-11 06:44:18">
<type id="119">
perlfunc</type>
<author id="113">
root</author>
<data>
<field name="doctext">
</field>
<field name="name">

&lt;P&gt;
locale - Perl pragma to use and avoid 
&lt;FONT SIZE=-1&gt;POSIX&lt;/FONT&gt; locales for built-in operations

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="synopsis">

&lt;P&gt;
&lt;PRE&gt;    @x = sort @y;       # ASCII sorting order
    {
        use locale;
        @x = sort @y;   # Locale-defined sorting order
    }
    @x = sort @y;       # ASCII sorting order again
&lt;/PRE&gt;
&lt;P&gt;
&lt;HR&gt;
</field>
<field name="description">

&lt;P&gt;
This pragma tells the compiler to enable (or disable) the use of 
&lt;FONT SIZE=-1&gt;POSIX&lt;/FONT&gt; locales for built-in operations 
&lt;FONT SIZE=-1&gt;(LC_CTYPE&lt;/FONT&gt; for regular expressions, and 
&lt;FONT SIZE=-1&gt;LC_COLLATE&lt;/FONT&gt; for string comparison). Each ``use locale'' or ``no locale'' affects statements to the end of the enclosing 
&lt;FONT SIZE=-1&gt;BLOCK.&lt;/FONT&gt;

&lt;HR&gt;
</field>
</data>
</node>
