Your skill will accomplish
what the force of many cannot
Moose and arrays of objectsby cellofan (Initiate)
|on Dec 03, 2012 at 09:54 UTC||Need Help??|
cellofan has asked for the
wisdom of the Perl Monks concerning the following question:
in the main program:
What it should be:
What I am doing wrong?
I am starting to program in Moose, so the meaning of certain issues with Moose I don not fully understand. As far I know, this code should work. I also try:
But I get compilation error like: I can not find add_atom in the package. So, definitively there is something I am doing wrong.
Is there anyone understand my problem?
Playing a bit found that "weak_ref => 0" works!!! If I do not understand bad, I need weak_ref => 1 because I do not want destroying the objects stored in the vector, so I see that the actual question is how I said to perl that I do not want to destroy the objects stored in the array?