in reply to Re: (jeffa) 3Re: When I try to create different objects i end up getting the same one over and over...
in thread When I try to create different objects i end up getting the same one over and over...
Easy, let's say that i want to print the third object's second 'os' element. Piece of cake:
Read up on perlreftut and perlref for more info.print $agents[2]->{os}->[1], "\n"; # or more succinctly print $agents[2]{os}[1], "\n";
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|