Subject: | wrong array element ref shown |
Date: | Thu, 23 Jul 2009 07:34:44 +1000 |
To: | bug-Data-Dumper [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With Data::Dumper 2.124 and recent debian i386 perl 5.10.0, the program
foo.pl prints
$aref = [
{},
$aref->[0],
\$aref->[0]
];
where I hoped the last entry would be
\$aref->[1]
which is how the structure has been created.
aref->[0] and aref->[1] contain the same value, but if I believe they're
distinct scalars and a reference to one of them is not the same as a
reference to the other.