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]