SYNOPSIS

     use Tree::Dump; # exports td() and tdmp()
     td($tree);

    Sample output:

     root
     |-- child1
     |   \-- grandc1
     |-- child2
     |-- child3
     |   |-- grandc2
     |   |-- grandc3
     |   |  |-- grandgrandc1
     |   |  \-- grandgrandc2
     |   |-- grandc4
     |   \-- grandc5
     \-- child4

DESCRIPTION

    This module is useful for debugging. The interface is modeled after
    Data::Dmp (which in turn is modeled after Data::Dump). Instead of dd,
    this module exports td which you can use to dump a tree object to
    STDOUT. There is also tdmp (like Data::Dmp's dmp) which return dumped
    data in a string.

    Any tree object can be printed as long as it supports parent and
    children methods. See Role::TinyCommons::Tree::Node for more
    information about the requirements.

FUNCTIONS

 td($tree) => str

    Dump tree to STDOUT and return it.

 tdmp($tree) => str

    Return dumped tree.

SEE ALSO

    Tree::To::TextLines

