A search can be a simple grep:
my @found_nodes= grep { $_->value =~ /LookForThis/ } $tree->traverse( + $tree->POST_ORDER );
"I can cast out either one of your demons, but not both of them." -- the XORcist
In reply to Re: Binary tree without recurssion
by NetWallah
in thread Binary tree without recurssion
by punitpawar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |