Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Charnames japh

by ambrus (Abbot)
on Apr 14, 2005 at 20:25 UTC ( #447959=obfuscated: print w/ replies, xml ) Need Help??

use charnames ":full"; BEGIN{ my $s = $^H{charnames}; $^H{charnames} = + sub { $_[0] =~ /^\$(.*)/s ? &$s($$1) : &$s; } } BEGIN { $name = "LAT +IN SMALL LETTER P"; } print "j\N{LATIN SMALL LETTER A}\N{$name}h\n"

Update: short version:

use charnames ":short"; BEGIN{ my $s = $^H{charnames}; $^H{charnames} += sub { $_[0] =~ /^\$(.*)/s ? &$s($$1) : &$s; } } BEGIN { $name = "la +tin:p"; } print "j\N{latin:a}\N{$name}h\n"

Comment on Charnames japh
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://447959]
Approved by ghenry
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-28 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls