in reply to unicode, \N, \x, character encoding
Update: you could also use eval() as shown below, but I think my previous solution is far more appropriate.
sub charname_to_char { my $name = shift; eval qq{ # because $^H{charnames} doesn't propogate into here use charnames ':full'; "\\N{$name}" }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unicode, \N, \x, character encoding
by caseyperkins (Initiate) on Mar 02, 2006 at 20:06 UTC |