Is there a version of charnames::viacode() which will return the short name of code-point, i.e. the name that can be used when use charnames ':short' is in effect?
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
charnames documents that
searches for
so you could use