How can I get list of all known names, that can be used in "\N{...}"
from perl?
Could not figure out to do with Unicode::UCD
or other core module.
Unicode::UCD
and a loop:
#!/usr/bin/env perl
use strict;
use warnings;
use Unicode::UCD qw/charinfo/;
use feature qw/say/;
say "Character names defined by Unicode ", Unicode::UCD::UnicodeVersion();
for (my $cp = 0; $cp <= 0x10FFFF; $cp += 1) {
my $info = charinfo($cp);
say $info->{"name"} if defined $info && $info->{"name"} ne "";
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With