sub get_path_from_root { my ($node) = @_; my @path; while (my $parent = get_parent($node)) { unshift @path, $parent; $node = $parent; } return join '/', @path; }
Cheers - L~R
In reply to Re: Processing Data in a Tree
by Limbic~Region
in thread Processing Data in a Tree
by reluctant_techie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |