charnames

Pragma to provide support for \N{ charname } escapes. Options are:

:full

Searches for charnames in the list of standard Unicode character names

:short

Searches for charnames in the specified script, with the \N escape expected to be of the form \N{ script:charname }

scriptname

Searches for all charnames in script scriptname

For example:

#!/usr/local/bin/perl -w

use charnames ':short';
print "\N{greek:Sigma} is an upper-case sigma.\n";

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.