in reply to Basic tree - compare question

Depends which way you build the tree I guess. The important thing is that you are consistent when building and traversing the tree. Note that this sub can be used to traverse the tree while adding and also later on while searching so as far as a user of the tree is concerned they might not ever need to know.


Perl is environmentally friendly - it saves trees