summaryrefslogtreecommitdiff
path: root/lib/charnames.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-07-13 19:43:29 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-07-13 19:43:29 +0000
commit76ae0c45721dbaad41835ad785762950350f86b7 (patch)
treef891bf4f4ce3b4736fb1c1862d5481d67867db0c /lib/charnames.pm
parent0319020171ad67607dd7a06e238d6c91ff7d4639 (diff)
downloadperl-76ae0c45721dbaad41835ad785762950350f86b7.tar.gz
Minor updates of the charnames documentation.
p4raw-id: //depot/perl@20157
Diffstat (limited to 'lib/charnames.pm')
-rw-r--r--lib/charnames.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/charnames.pm b/lib/charnames.pm
index cd7b08aa97..3457b8b66b 100644
--- a/lib/charnames.pm
+++ b/lib/charnames.pm
@@ -333,9 +333,10 @@ charnames - define character names for C<\N{named}> string literal escapes
use charnames ":full", ":alias" => {
e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE",
- };
+ };
print "\N{e_ACUTE} is a small letter e with an acute.\n";
+ use charnames ();
print charnames::viacode(0x1234); # prints "ETHIOPIC SYLLABLE SEE"
printf "%04X", charnames::vianame("GOTHIC LETTER AHSA"); # prints "10330"
@@ -343,8 +344,8 @@ charnames - define character names for C<\N{named}> string literal escapes
Pragma C<use charnames> supports arguments C<:full>, C<:short>, script
names and customized aliases. If C<:full> is present, for expansion of
-C<\N{CHARNAME}> string C<CHARNAME> is first looked in the list of
-standard Unicode names of chars. If C<:short> is present, and
+C<\N{CHARNAME}>, the string C<CHARNAME> is first looked up in the list of
+standard Unicode character names. If C<:short> is present, and
C<CHARNAME> has the form C<SCRIPT:CNAME>, then C<CNAME> is looked up
as a letter in script C<SCRIPT>. If pragma C<use charnames> is used
with script name arguments, then for C<\N{CHARNAME}> the name