summaryrefslogtreecommitdiff
path: root/lib/locale.pm
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-23 18:04:41 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-23 18:27:40 -0700
commit465d77f974df11d7c9502274aace9a2931fd196a (patch)
tree699c79154c40a1224cf888f21124ae00aab70f1e /lib/locale.pm
parenta02ae656c54414fd3b04bf8cc53393e5c2438083 (diff)
downloadperl-465d77f974df11d7c9502274aace9a2931fd196a.tar.gz
lib/locale.pm: Pod corrections
Diffstat (limited to 'lib/locale.pm')
-rw-r--r--lib/locale.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/locale.pm b/lib/locale.pm
index 97b324f47e..fbb4a185af 100644
--- a/lib/locale.pm
+++ b/lib/locale.pm
@@ -11,12 +11,13 @@ locale - Perl pragma to use or avoid POSIX locales for built-in operations
=head1 SYNOPSIS
- @x = sort @y; # Unicode sorting order
+ @x = sort @y; # Native-platform/Unicode code point sort order
{
use locale;
- @x = sort @y; # Locale-defined sorting order
+ @x = sort @y; # Locale-defined sort order
}
- @x = sort @y; # Unicode sorting order again
+ @x = sort @y; # Native-platform/Unicode code point sort order
+ # again
=head1 DESCRIPTION
@@ -37,8 +38,8 @@ Unicode and locales, including UTF-8 locales.
use locale ':not_characters';
use open ":locale"; # Convert I/O to/from Unicode
use POSIX qw(locale_h); # Import the LC_ALL constant
- setlocale(LC_ALL, ""); # Required for the next statement
- # to take effect
+ setlocale(LC_ALL, ""); # Generally required for the next
+ # statement to take effect
printf "%.2f\n", 12345.67' # Locale-defined formatting
@x = sort @y; # Unicode-defined sorting order.
# (Note that you will get better