Skip to content

Commit

Permalink
bug workaround re: use charnames
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@3143 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
hotsphink committed Mar 16, 2003
1 parent 16f93e5 commit b98414f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion languages/perl6/P6C/Tree/String.pm
Expand Up @@ -217,7 +217,9 @@ sub string_special {
} }
else { else {
use charnames qw(:full); use charnames qw(:full);
$val = eval qq["\\N{$_}"]; # The charnames doesn't seem to propagate into the eval""
# for me -- sfink
$val = eval qq[use charnames qw(:full); "\\N{$_}"];
error ("Error in interpolation of control-char: $@"),die if $@; error ("Error in interpolation of control-char: $@"),die if $@;
} }
$val = '\\x'.sprintf("%x",ord $val) if ord($val) < 256; $val = '\\x'.sprintf("%x",ord $val) if ord($val) < 256;
Expand Down

0 comments on commit b98414f

Please sign in to comment.