in reply to How to structure files and subdirectories for related classes and subclasses?

The standard way (and the only way that works smoothly with use) is to replace :: with / and add .pm to get the path to the module. So, in your case:

use EventRepository; # lib/EventRepository.pm use EventRepository::SubClass; # lib/EventRepository/SubClass.p +m

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: How to structure files and subdirectories for related classes and subclasses?
by nysus (Parson) on Apr 03, 2016 at 17:16 UTC

    Got it. Thanks for saving me some time getting that worked out.

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