in reply to Re^2: Keeping relationally child objects alive with Moo
in thread Keeping relationally child objects alive with Moo

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.

Replies are listed 'Best First'.
Re^4: Keeping relationally child objects alive with Moo
by anonymized user 468275 (Curate) on Sep 21, 2017 at 15:58 UTC
    The hash keys persist, but sometimes the values (objects) get destroyed/go undef even though obviously $self and all its immediate attributes are still alive and well.

    One world, one people