From: Ilya Zakharevich Date: Sun, 29 Aug 1999 16:46:53 +0000 (-0400) Subject: Use \N{named characters} instead of \C. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4a2d328fcdc90a0fcbd435b479571aad60159771;p=p5sagit%2Fp5-mst-13.2.git Use \N{named characters} instead of \C. To: jhi@iki.fi Cc: larry@wall.org (Larry Wall), Tim.Bunce@ig.co.uk (Tim Bunce), perl5-porters@perl.org (Mailing list Perl5) Subject: Re: [PATCH 5.005_58] Named characters in Perl Message-Id: <199908292046.QAA05510@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@4052 --- diff --git a/lib/charnames.pm b/lib/charnames.pm index e407ff7..bd97983 100644 --- a/lib/charnames.pm +++ b/lib/charnames.pm @@ -60,28 +60,28 @@ __END__ =head1 NAME -charnames - define character names for C<\C{named}> string literal escape. +charnames - define character names for C<\N{named}> string literal escape. =head1 SYNOPSIS use charnames ':full'; - print "\C{GREEK SMALL LETTER SIGMA} is called sigma.\n"; + print "\N{GREEK SMALL LETTER SIGMA} is called sigma.\n"; use charnames ':short'; - print "\C{greek:Sigma} is an upper-case sigma.\n"; + print "\N{greek:Sigma} is an upper-case sigma.\n"; use charnames qw(cyrillic greek); - print "\C{sigma} is Greek sigma, and \C{be} is Cyrillic b.\n"; + print "\N{sigma} is Greek sigma, and \N{be} is Cyrillic b.\n"; =head1 DESCRIPTION Pragma C supports arguments C<:full>, C<:short> and script names. If C<:full> is present, for expansion of -C<\C{CHARNAME}}> string C is first looked in the list of +C<\N{CHARNAME}}> string C is first looked in the list of standard Unicode names of chars. If C<:short> is present, and C has the form C, then C is looked up as a letter in script C