There's more than one way to do things | |
PerlMonks |
Which Tree Module do you recommendby learnedbyerror (Monk) |
on Mar 31, 2016 at 18:18 UTC ( [id://1159214]=perlquestion: print w/replies, xml ) | Need Help?? |
learnedbyerror has asked for the wisdom of the Perl Monks concerning the following question: Oh Monks, I again need your enlightened opinions. I am looking at using one of the n-ary tree modules (i.e. Tree, Tree::Simple, Forest ...) to model the relationship between two entities (Locations and Equipment) so that I can generate a generalized view to display the nested hierarchy as well as query parents, siblings and children. Both entities are defined in a relational database. The location records contain a parent location field. The equipment records contain location and parent equipment fields, of which only one can be populated. Some rules:
An example in reference syntax
My questions are:
Thank you in advance, lbe
Back to
Seekers of Perl Wisdom
|
|