Skip Menu |

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

Report information
The Basics
Id: 29380
Status: resolved
Worked: 4 hours (240 min)
Priority: 0/
Queue: Data-TreeDumper

People
Owner: NKH [...] cpan.org
Requestors: NKH [...] cpan.org
Cc:
AdminCc:

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



Subject: Overloaded objects are not displayed properly
L<Scalar::Cycle::Manual> is not dumped properly by L<Data::TreeDumper>. L<Data::Dumper> is fine. # Data::Dumper $VAR1 = bless( [ 0, 3, [ 'first', 'second', 'third' ], 1 ], 'Scalar::Cycle::Manual' ); # Data::TreeDumper cyclic_variable `- REF(0x61d220) = blessed in 'Scalar::Cycle::Manual' [O1] Also, Depending on the L<auto_increment> state you may get different Dumps $cyclic_variable->auto_increment(1) ; print DumpTree [$cyclic_variable, $cyclic_variable], 'cyclic variable:' ; cyclic_variable |- 0 = blessed in 'Scalar::Cycle::Manual' [O1] `- 1 = blessed in 'Scalar::Cycle::Manual' [O2] $cyclic_variable->auto_increment(0) ; print DumpTree [$cyclic_variable, $cyclic_variable], 'cyclic variable:' ; cyclic_variable |- 0 = blessed in 'Scalar::Cycle::Manual' [O1] `- 1 = blessed in 'Scalar::Cycle::Manual' [O2 -> O1]
This problem occures, for example, when "" is overloaded. DTD relies on the object stringification to find what the underlying perl structure is. If the stringification does not contain any of 'HASH', 'ARRAY' ... DTD stops dumping. This problem occures also for Perl::Critic object and certainly other.
Fixed in version 0.35