my @todo = $tree; while (@todo) { my $node = shift(@todo); ... push @todo, $node->children; }
In reply to Re: Object of objects, Binary tree,
by ikegami
in thread Object of objects, Binary tree,
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |