Created
April 17, 2012 09:35
-
-
Save zby/2404891 to your computer and use it in GitHub Desktop.
A Data::Dumper bug - or Latin1 strikes again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use utf8; | |
use Devel::Peek; | |
use Test::More; | |
use Data::Dumper; | |
$Data::Dumper::Terse = 1; | |
#binmode(STDERR, ":utf8"); | |
my $initial = "\x{f3}"; | |
is( $initial, 'ó', 'literal' ); | |
my $dumped = Dumper( $initial ); | |
my $last = eval $dumped; | |
is( $last, 'ó', 'eval' ); | |
Dump( $last ); | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment