Movatterモバイル変換


[0]ホーム

URL:


 / 
perl-5.40.1
River stage five • 11905 direct dependents • 33393 total dependents
/locale

NAME

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

SYNOPSIS

my @x1 = sort @y;      # Native-platform/Unicode code point sort order{    use locale;    my @x2 = sort @y;  # Locale-defined sort order}my @x3 = sort @y;      # Native-platform/Unicode code point sort order                       # again# Parameters to the pragma are to work around deficiencies in locale# handling that have since been fixed, and hence these are likely no# longer usefuluse locale qw(:ctype :collate);    # Only use the locale for character                                   # classification (\w, \d, etc.), and                                   # for string comparison operations                                   # like '$a le $b' and sorting.use locale ':not_characters';      # Use the locale for everything but                                   # character classification and string                                   # comparison operationsuse locale ':!numeric';            # Use the locale for everything but                                   # numeric-related operationsuse locale ':not_numeric';         # Sameno locale;             # Turn off locale handling for the remainder of                       # the scope.

DESCRIPTION

This pragma tells the compiler to enable (or disable) the use of POSIX locales for built-in operations (for example,LC_CTYPE for regular expressions,LC_COLLATE for string comparison, andLC_NUMERIC for number formatting). Eachuse locale orno locale affects statements to the end of the enclosing BLOCK.

The pragma is documented as part ofperllocale.

Module Install Instructions

To install less, copy and paste the appropriate command in to your terminal.

cpanm

cpanm less

CPAN shell

perl -MCPAN -e shellinstall less

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp