in reply to Re: arrays of object in OO perl
in thread arrays of object in OO perl
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.