No such thing as a small change | |
PerlMonks |
Re: Hierarchical Data Structuresby NetWallah (Canon) |
on Mar 11, 2004 at 06:12 UTC ( [id://335730]=note: print w/replies, xml ) | Need Help?? |
Here is a basic outline for one way to do it:
You can use Class::Struct to construct the basic "Player" object. Then the properties "Parent", and 3 "Child" player can each be assigned new Player objects. You can create traversal methods.
In Section
Seekers of Perl Wisdom
|
|