Tree::Renderer: A partial replacement for Data::TreeDumper
It seem that since Perl V 5.20.0, Data::TreeDumper won't install because it depends on Devel::Size, but in fact the latter could be marked optional (I'm told via an RT ticket).
For my own use basically, I'll soon release a simple module called Tree::Renderer, whose default output is almost identical to that of Data::TreeDumper.
So far, I've only implemented these return values for Scalar::Utils's reftype:
ARRAY, CODE, HASH, REF and SCALAR.
If you want support for other types let me know. Being lazy I hope not - in the nicest possible way, of course!
Lastly, yes, the name Tree::Renderer could be Data::TreeRenderer, etc, etc. Suggestions tolerated.
I should add the module only has 2 options:
o attributes (Bool) which dumps the tree nodes' metadata during debugging.
o title (Str).
No, there are no other options.
The huge feature set of Data::TreeDumper will not be supported.
The good news is that the output is an arrayref.
So you can choose to print as much or as little of it as you wish.
And that includes summming the length of each line and stopping printing if the total byte counts hits some limit.