And there's
GraphViz::Data::Structure, if you want pictures instead of text. Integrate that into the debugger with
Devel::Command::Viz.
You might find the internals of that module interesting; I stole some code from
dumpvar.pl to handle coderefs and globs.