Hi. You should reference $mango in the callback.
One neat way doing that is: "$mango if 0;". This will be compiled away but stops the garbage collector from killing $mango. Den fredag 20. juni 2014 skrev Nacho B <[email protected]> følgende: > Well, changing the scope form *my $mango* to *our $mango* solves > it perfectly. But is it a good practice?, or should I try another approach? > > Sometimes it's not easy to evolve from the tutorials to the real life > code... > > Thank you again: > Nacho B > -- Pelle Research is what I'm doing when I don't know what I'm doing. - Wernher von Braun -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
