Subject: | $a = [\$a,\$a] |
CC: | gsar [...] sophos.com |
On 09 Mar 2005 23:11:00 PST, Gisle Aas wrote:
Show quoted text
>All output from Data::Dump should evaluate back to the same values
>that was given to dump. If not, it's a bug that should be fixed.
Something in Data::Dump needs fixing then. In fact it is the
"fix" thingy in Data::Dump that needs fixing. :)
I meant this and its variations, where Data::Dump doesn't work
and Data::Dumper does:
% perl -MData::Dump=dump -l
my $a; $a = [\$a,\$a];
print dump($a);
print dump(eval dump($a) or $@);
__END__
do {
my $a = [\'fix', \'fix'];
${$a->[0]} = $a;
${$a->[1]} = $a;
$a;
}
()
"Modification of a read-only value attempted at (eval 1) line 3.\n"