是否有一个版本charnames::viacode()
将返回代码点的短名称,即use charnames ':short'
在生效时可以使用的名称?
use charnames ':short';
my $x = ord("\N{Cyrillic::es}");
say "long name: ", charnames::viacode($x); # prints "CYRILLIC SMALL LETTER ES"
say "short name: ", ???($x); # want: Cyrillic:es