in reply to Categories. Table of Contents. Trees?
(I have not tried this combo,but is seems to match your needs).
Update: Oops - I looked at the wrong module - Tree.pm is fine - in fact it is based on Tree::Simple, and simplifies it further.
"Man cannot live by bread alone...
He'd better have some goat cheese and wine to go with it!"
In Section
Seekers of Perl Wisdom