in reply to Re^2: Class array, push a new element
in thread Class array, push a new element

My eyes are broken. I should definitely not be working on a Sunday....

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^4: Class array, push a new element
by hatz (Initiate) on Sep 08, 2014 at 20:59 UTC
    Thank you for your answers!

    Indeed the syntax you wrote looks better :

    push @{$self->{_tasks}}, $task;

    It does not raise the warning anymore ("push on reference is experimental at Project.pm line 40").

    I will get more familiar with references and how to get an array, hash or string out of one.

    Thank you again!