in reply to Re: Class array, push a new element
in thread Class array, push a new element
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Class array, push a new element
by kennethk (Abbot) on Sep 07, 2014 at 23:07 UTC | |
by hatz (Initiate) on Sep 08, 2014 at 20:59 UTC |