You need to put double quotes around the string, e.g.
my $x = '\x{263a}'; my $y = eval '"'.$x.'"'; # or my $y = eval "\"$x\"";
In reply to Re^3: Escaping Wide Characters
by almut
in thread Escaping Wide Characters
by mobiusinversion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |