Welcome to the Monastery | |
PerlMonks |
Keeping relationally child objects alive with Mooby anonymized user 468275 (Curate) |
on Sep 21, 2017 at 10:24 UTC ( [id://1199820]=perlquestion: print w/replies, xml ) | Need Help?? |
anonymized user 468275 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
The concept of inheritance carries with it a concept of parent and child, but what if I want a relational parent/child model? So using Moo, I tried this: Problem is that sometimes a $tob gets destroyed in spite of being nested in a living model object. But rather than hack my way around what I did, I am wondering if I am missing a tried and tested way of storing relationally child objects in their relationally parent object (including if necessary upgrading from Moo to Moose). Many thanks in advance for suggestions (I am looking for architectural insight/tips rather than merely fixing the code I already have). One world, one people
Back to
Seekers of Perl Wisdom
|
|