Skip to content

Instantly share code, notes, and snippets.

@xaicron
Created April 11, 2010 04:11
Show Gist options
  • Save xaicron/362489 to your computer and use it in GitHub Desktop.
Save xaicron/362489 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use 5.010;
use Encode;
use Devel::Peek;
my $str = decode_utf8 'ほげ';
{
use utf8;
my $hash = {hoge => $str};
Dump $_ for keys %$hash;
}
{
my $hash = {hoge => $str};
Dump $_ for keys %$hash;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment