So, what does ->attribute return?
If it returns a hashref that is kept alive by $self, you should be fine.
If it returns something else, you might have a problem.
But we cannot tell without seeing some representative example.
In reply to Re^3: Keeping relationally child objects alive with Moo
by Corion
in thread Keeping relationally child objects alive with Moo
by anonymized user 468275
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |