Skip to content

Commit

Permalink
- Faster deparsing of strings with code points > 127 and < 256 -- no …
Browse files Browse the repository at this point in the history
…state variable is created
  • Loading branch information
trizen committed Dec 17, 2015
1 parent d5df49d commit e7c3756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sidef/Deparse/Perl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ HEADER
# Make sure that code-points between 128 and 256
# will be stored internally as UTF-8 strings.
if ($str =~ /[\200-\400]/) {
return "do {state \$x = do {require Encode; Encode::decode_utf8(Encode::encode_utf8($d))}}";
return "do {require Encode; Encode::decode_utf8(Encode::encode_utf8($d))}";
}

$d;
Expand Down

0 comments on commit e7c3756

Please sign in to comment.