"be consistent" | |
PerlMonks |
Re^2: arrays of object in OO perlby IL_MARO (Initiate) |
on Nov 19, 2008 at 06:34 UTC ( [id://724487]=note: print w/replies, xml ) | Need Help?? |
I tried with the suggested code return $this->{individual}->[$index]->getDNA(); but the output is always the same: Can't call method "getDNA" on an indefined value at Population.pm ... I want to point out that I don't push into Population empty arrays.
In Section
Seekers of Perl Wisdom
|
|