in reply to treemap
Produces this after the first pass:$data->{numref} = \$data->{nums}->[0];
The link is lost and the leaf is visited twice.$VAR1 = { 'nums' => [ '-=ONE=-', ...], 'numref' => \'-=-=ONE=-=-', ...
Repeating the "-=\U$_=-" line, gives
Not likely to be a problem, but worth the note.'nums' => ['-=-=ONE=-=-', ... 'numref' => \'-=-=-=ONE=-=-=-', ...
$refs->{ref($_) ? $_: \$_} = undef;
|
|---|