in reply to Recursion, tree parsing.

Sean M. Burke wrote an article for TPJ called Trees and Game Trees. In it, he uses the HTML::Element module to illustrate an implementation of trees in Perl, concluding that "Theoretically, any tree is pretty much like any other tree, so you could use the HTML::Element module for anything you'd ever want to do with tree-arranged objects", and goes on to say"For a general purpose tree class...you can use the Tree::DAG_Node module". His simple roll-yer-own recursive tree-printing subroutine is similar to yours, too. All in all, an article that might be worthy of a read for ya. Find it here. Cheers