in reply to Re^4: Creating dynamic parent/child relationships
in thread Creating dynamic parent/child relationships

Roles are not part of the Perl language so they must be implemented via modules. The minutiae of the mechanisms for implementing roles will depend on which module you use. As ever, if you want to know the implementation details you only need to look in the source.

More recent books such as Modern Perl by chromatic do mention roles but (quite reasonably) don't delve into the underlying mechanisms.

  • Comment on Re^5: Creating dynamic parent/child relationships

Replies are listed 'Best First'.
Re^6: Creating dynamic parent/child relationships
by nysus (Parson) on Sep 06, 2019 at 13:59 UTC

    This is the fascinating part about programming. Out there, in the oblivion, lies some mythical optimal solution. The really good programmers can intuit their way to that solution, or at least get closer to it faster, than inexperienced ones.

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