Subject: | Data::Dump modifying Hash |
Date: | Sun, 15 Mar 2015 23:29:03 +0000 |
To: | bug-Data-Dump [...] rt.cpan.org |
From: | Andrew Solomon <andrew [...] illywhacker.net> |
Here's the setup:
* Linux: Linux 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
* Perl: v5.18.1 built for x86_64-linux
* Data::Dump 1.22
I know that the BUG HERE line has no sensible meaning. I was just trying to
figure out why I don't get an error running it. In the process though I got
the output below.
==================================
use strict;
use warnings;
use Data::Dump 'pp';
use Data::Dumper;
use feature 'say';
{
say 'Hash';
my %hash = ( alpha => 'foo', beta => 'bar' );
say pp (\%hash);
say pp($hash{'foo','bar'}); # BUG HERE
say pp (\%hash);
}
=======================================
$ ./foo.pl
Hash
{ alpha => "foo", beta => "bar" }
undef
{ "alpha" => "foo", "beta" => "bar", "foo\34bar" => undef }