examples/walk_tree.pl - Display mapping between IDs, parent IDs and materialized paths.
perl examples/walk_tree.pl
This is a simple program which, given the Perl data structures needed to use the components interface to build a Parse::Taxonomy::MaterializedPath object, prints to STDOUT a mapping among the id, parent_id in the object and the materialized path in the input.
components
id
parent_id
Contributed by Ron Savage.
To install Parse::Taxonomy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Taxonomy
CPAN shell
perl -MCPAN -e shell install Parse::Taxonomy
For more information on module installation, please visit the detailed CPAN module installation guide.