There's more than one way to do things | |
PerlMonks |
Re: Keeping relationally child objects alive with Mooby choroba (Cardinal) |
on Sep 21, 2017 at 12:50 UTC ( [id://1199830]=note: print w/replies, xml ) | Need Help?? |
What you describe is called "composition", and it's often accompanied by "delegation" where the outer object delegates some of its method to the inner one. It's a common pattern and it should work flawlessly in Moo.
In Section
Seekers of Perl Wisdom
|
|