in reply to Re: Using Moo.pm and compilation errors
in thread Using Moo.pm and compilation errors

require "$filename.pm";

:) Module::Load is core long time :)

$ perl -e"use Module::Load; load q/longtime/; " Can't locate longtime.pm in @INC (@INC contains:...

Replies are listed 'Best First'.
Re^3: Using Moo.pm and compilation errors
by Corion (Patriarch) on Apr 30, 2015 at 11:35 UTC

    Great! I didn't know that module. I reused the code that parent.pm uses to load classes. The sad thing is that parent still supports 5.8.x and Module::Load came into (core) existence in 5.9.x and I'm somewhat reluctant to ditch one regex for another use line in parent.pm. But for all my other module-loading needs, Module::Load is a welcome find!