in reply to Re^2: Converting hash structure into a special tree
in thread Converting hash structure into a special tree
The source code for Data::RenderAsTree could show you how to tweak Tree::DAG_Node output into what you want.
In Section
Seekers of Perl Wisdom