in reply to Re^2: What is a reliable way to get the package of the code creating a Moose object?
in thread What is a reliable way to get the package of the code creating a Moose object?

Would it maybe help to have the Teacher create Pupil objects, and the Parent create Child objects? The Pupil could be an object that has a Child instance and reflects most methods, or it could inherit from the Child class?

Replies are listed 'Best First'.
Re^4: What is a reliable way to get the package of the code creating a Moose object?
by nysus (Parson) on Jul 12, 2018 at 14:21 UTC

    Yeah, it probably makes the most sense to do it like this. That would be a much more standard design pattern even if it's a little more boring.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks