diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 17:24:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 17:24:49 +0000 |
commit | e0a47bd2cb14247750ebc5ca933bb1ba015aa70a (patch) | |
tree | feb12685785610fc26e0613b0bdc2df24c76f4fa /pod | |
parent | 24f8da60e89a5ed99e35a315aa20cf528ac63c0e (diff) | |
download | perl-e0a47bd2cb14247750ebc5ca933bb1ba015aa70a.tar.gz |
Add the \N{U+HHHH} syntax.
p4raw-id: //depot/perl@9014
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 5 | ||||
-rw-r--r-- | pod/perlretut.pod | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 122f5ea144..5adf241b52 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1564,6 +1564,11 @@ to your Perl administrator. your logic, or you need to put a conditional in to guard against meaningless input. +=item Illegal hexadecimal code on \N{U+...} + +(F) You must specify a hexadecimal code for the Unicode codepoint +after the "U+" inside your "\N{}". + =item Illegal hexadecimal digit %s ignored (W digit) You may have tried to use a character other than 0 - 9 or diff --git a/pod/perlretut.pod b/pod/perlretut.pod index a77b87e125..2647076234 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -1657,9 +1657,9 @@ or deciphering someone else's hexadecimal Unicode regexp is about as much fun as programming in machine code. So another way to specify Unicode characters is to use the S<B<named character> > escape sequence C<\N{name}>. C<name> is a name for the Unicode character, as -specified in the Unicode standard. For instance, if we wanted to -represent or match the astrological sign for the planet Mercury, we -could use +specified in the Unicode standard, or "U+" followed by the hexadecimal +code of the character. For instance, if we wanted to represent or +match the astrological sign for the planet Mercury, we could use use utf8; # We will be doing Unicode processing use charnames ":full"; # use named chars with Unicode full names |