D
Dan Jacobson
This looks good:
use Unicode::UCD 'charinfo';
my $charinfo = charinfo(0x41);
charinfo() returns a reference to a hash that has the following fields
as defined by the Unicode standard:
key
code code point with at least four hexdigits
name name of the character IN UPPER CASE
category general category of the character...
But how can I print the whole thing out? I looked in perlref and
Tie::RefHash but I'm not as sharp as I used to be.
You see I want to find evidence that U+4EB0 is more Japanese, and
U+4EAC is more Chinese versions of the same character, and maybe the
above charinfo structure would say so, but I don't know how to print it.
(iconv -t gb2312 supports my conjecture, as only one is mapped...)
use Unicode::UCD 'charinfo';
my $charinfo = charinfo(0x41);
charinfo() returns a reference to a hash that has the following fields
as defined by the Unicode standard:
key
code code point with at least four hexdigits
name name of the character IN UPPER CASE
category general category of the character...
But how can I print the whole thing out? I looked in perlref and
Tie::RefHash but I'm not as sharp as I used to be.
You see I want to find evidence that U+4EB0 is more Japanese, and
U+4EAC is more Chinese versions of the same character, and maybe the
above charinfo structure would say so, but I don't know how to print it.
(iconv -t gb2312 supports my conjecture, as only one is mapped...)