Such relationship between modules, compared to parent-child relationship, is more social. These two modules can be many-to-many mapping, e.g. An A can have many Bs while a B can have many A's.
my ($group1, $group)=map{Group->new(-name=>$_)} qw(group1 group2); my $person=Person->new( -groups => [$group1, $group2] ); my $person=Person->new( -groups=>[ [$group1, {-rank=>1}], [$group2, {-rank=>10}] ] ); my $person=Person->new( -groups=>{ $group1 => {-rank=>1}, $group2 => {-rank=>10} } );
To install AutoCode::Root, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AutoCode::Root
CPAN shell
perl -MCPAN -e shell install AutoCode::Root
For more information on module installation, please visit the detailed CPAN module installation guide.