The stupid question is the question not asked | |
PerlMonks |
Re^2: Class array, push a new elementby Anonymous Monk |
on Sep 07, 2014 at 22:53 UTC ( [id://1099830]=note: print w/replies, xml ) | Need Help?? |
I think you've got a bug there; are you sure that the object contains the tasks after your push? I think the line @{ $self->{_tasks} } = @taskArray; takes care of that? Anyway, your version is indeed the shorter & more efficient one. hatz, you may want to look at perlreftut and perlref.
In Section
Seekers of Perl Wisdom
|
|