We don't bite newbies here... much | |
PerlMonks |
Re^2: how to construct tree from parent pointer listby Anonymous Monk |
on Mar 22, 2006 at 17:05 UTC ( [id://538543]=note: print w/replies, xml ) | Need Help?? |
I have the following list that is generated where the fist item it the child and the second item is the parent:
b:a
c:a
d:b
e:c
f:c
And it needs to look like this when I am done:
+-b--d
a -+
+ +-e
+-c-+
+-f
Any help with this would be appreciated.
I'd suggest something along these lines...
I have no idea how to store this either. Is there any reason you don't want to do this?
--
In Section
Seekers of Perl Wisdom
|
|