[Chicago-talk] Building a hierarchy

Mike Fragassi frag at ripco.com
Wed Mar 16 09:53:28 PDT 2011


Give Tree::DAG_Node a look.

   use Tree::DAG_Node;
   my $root = Tree::DAG_Node->new();
   $root->name("I'm the tops");
   my $new_daughter = $root->new_daughter;
   $new_daughter->name("More");

It includes accessor methods 'mother' and 'daughters', etc.


More information about the Chicago-talk mailing list