develooper Front page | perl.perl5.porters | Postings from December 2009

Re: [perl #71762] vianame() returns a chr instead of an ord when called like U+xxxx

Thread Previous | Thread Next
From:
demerphq
Date:
December 31, 2009 05:07
Subject:
Re: [perl #71762] vianame() returns a chr instead of an ord when called like U+xxxx
Message ID:
9b18b3110912310507k40852ba8n2a3c601366f50573@mail.gmail.com
2009/12/31 karl williamson <perlbug-followup@perl.org>:
> # New Ticket Created by  karl williamson
> # Please include the string:  [perl #71762]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=71762 >
>
>
> This is a bug report for perl from khw@khw-desktop.nonet,
> generated with the help of perlbug 1.39 running under perl 5.11.3.
>
>
> -----------------------------------------------------------------
> The function vianame() in charnames.pm is supposed to return the ordinal
> of the name it is called with.  But when called with a name like U+0041,
> it doesn't, it returns the chr instead.
> -----------------------------------------------------------------
> ---

This is actually documented somewhere, i remember being really
surprised about it when i encountered it.

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About