DZ-Jay wrote: > The above seems to work exactly as I expected. However, being new to > OOP in Perl (but not to OOP or Perl in general!) I wonder if this is > actually the proper way to do it, or if there are some sort of > side-effects that I am not aware of -- or worse -- that the > fact that it works at all is a side-effect in itself!
Your code looks fine. Depending on what you're trying to do, you may also want to look at Tree::Simple, which is a wonderful module that is powerful yet easy to use, and it is also well-written and documented. It's one of my favorite modules. You can attach any object or data to the "nodes," and there are methods to traverse, search, get properties of (i.e. depth, width), and output the tree in multiple ways (even a cool expanding/collapsing DHTML tree). - Mark. -- Mark Thomas Internet Systems Architect _______________________________________ BAE SYSTEMS Information Technology 2525 Network Place Herndon, VA 20171 USA _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
