in reply to (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...

jeffa thank you so much for your help, you have been great. I have been playing around with this a little more this afternoon, there is one thing I cant figure out. How do I refrence a specific element in os now? thanks Josh
  • Comment on Re: (jeffa) 3Re: When I try to create different objects i end up getting the same one over and over...

Replies are listed 'Best First'.
(jeffa) 5Re: When I try to create different objects i end up getting the same one over and over...
by jeffa (Bishop) on Apr 26, 2002 at 21:53 UTC
    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)