Graphical Hierarchical Treeby yojimbo (Monk)
|on Mar 04, 2001 at 22:20 UTC||Need Help??|
yojimbo has asked for the
wisdom of the Perl Monks concerning the following question:
I wrote a project a while ago, to allow web-based discussions with threading of user comments. It was deficient in more ways than I care to list, and I'm thinking of a major rewrite/overhaul. For the threading, I used this code (it links to a MySQL database which stored the discussions):
This produces output like this:
I would like to know how I could produce output similar to the unix "tree" program, ie with lines to indicate relationships between nodes:
And any other observations you might care to make. TIA.
2001-03-04 Edited by Corion : Changed <PRE> tags to <CODE> tags.