samtregar has asked for the wisdom of the Perl Monks concerning the following question:
$ perl -MEncode -MData::Dumper -e \ 'my $ref = Encode::decode_utf8({ foo => 1}); print Dumper($ref); +' $VAR1 = { 'foo' => 1 };
However, Encode v2.18 with Perl v5.6.1 is not so forgiving:
$ perl -MEncode -MData::Dumper -e \ 'my $ref = Encode::decode_utf8({ foo => 1}); print Dumper($ref); +' $VAR1 = 'HASH(0x9932180)';
So, is this a bug in Encode or a bug in my app? I'm leaning towards the latter but I thought I'd check with you before I started trying to fix it (no tests, argh!). Aside from "don't do that", can you suggest a fix?
Thanks,
-sam
PS: I also submitted this to the perl-unicode mailing-list. I'll update anything useful I get there in this node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encode::decode_utf8 and references
by rhesa (Vicar) on Jun 17, 2006 at 21:55 UTC | |
|
Re: Encode::decode_utf8 and references
by Anonymous Monk on Jun 17, 2006 at 21:51 UTC | |
by samtregar (Abbot) on Jun 17, 2006 at 21:54 UTC | |
|
Re: Encode::decode_utf8 and references
by graff (Chancellor) on Jun 18, 2006 at 01:16 UTC | |
by samtregar (Abbot) on Jun 18, 2006 at 03:25 UTC | |
|
Re: Encode::decode_utf8 and references
by Anonymous Monk on Jun 18, 2006 at 07:41 UTC | |
by samtregar (Abbot) on Jun 18, 2006 at 16:43 UTC |