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...

So much for not wasting database space! :D

Easy, let's say that i want to print the third object's second 'os' element. Piece of cake:

print $agents[2]->{os}->[1], "\n"; # or more succinctly print $agents[2]{os}[1], "\n";
Read up on perlreftut and perlref for more info.

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)
  • Comment on (jeffa) 5Re: When I try to create different objects i end up getting the same one over and over...
  • Download Code