Skip Menu |

This queue is for tickets about the Data-Dump CPAN distribution.

Report information
The Basics
Id: 105422
Status: new
Priority: 0/
Queue: Data-Dump

People
Owner: Nobody in particular
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Test case for 'fix' in output
Sometimes Data::Dump outputs the string 'fix' instead of the data structure. Here is a test case that triggers it: %h = (A => [ [] ]); $h{B} = [ @{$h{A}} ]; use Data::Dump qw(dump); print dump \%h;
The output I see with perl-5.18.4 and Data::Dump-1.23 is do { my $a = { A => [[]], B => ['fix'] }; $a->{B}[0] = $a->{A}[0]; $a; }
Ah, I see this is probably NOTABUG - it is the way of marking shared references. I guess what I would suggest is something a bit more obvious in the output. For example, the first time that 'fix' is printed, a Perl comment should be generated: # This 'fix' placeholder will be replaced by an # assignment generated below.