The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tree::Simple - An simple n-ary Tree

SYNOPSIS

  use Tree::Simple;

DESCRIPTION

This is an inside-out object implementation based on the perl5 module Tree::Simple.

METHODS

Tree::Simple::new(?$node, ?$parent)
depth ($self:) returns Int
node ($self: ?$node) returns Any
parent ($self: ?$parent) returns Int
is_root ($self:) returns Bool
is_leaf ($self:) returns Bool
child_count ($self:) returns Int
add_child ($self: $child) returns Void
add_children ($self: *@children) returns Void
get_child ($self: $index) returns Int
get_all_children ($self:) returns Array
traverse ($self: Code $func) returns Void

SEE ALSO

Perl 5 Tree::Simple

AUTHOR

stevan little, <stevan@iinteractive.com>

COPYRIGHT

Copyright (c) 2005. Stevan Little. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html