develooper Front page | perl.perl5.porters | Postings from December 2016

Re: Should we bring in Module::Runtime into core?

Thread Previous | Thread Next
Dan Book
December 8, 2016 17:10
Re: Should we bring in Module::Runtime into core?
Message ID:
On Thu, Dec 8, 2016 at 7:11 AM, Lasse Makholm <>
> Adding a simple load_module() (or load_class) function to Module::Load
> that would always:
>  - interpret its argument as a module/class name
>  - load the module and return true or die trying
> would, in my opinion, go a long way in removing the need for other modules.

I agree, this would fit my current use cases for Module::Runtime. The
return value being the return value of the module (ala require_module) or
the module name (ala use_module) would have to be bikeshed. Also, I think
there is some use case for use_package_optimistically but I don't know if
it's important enough to have in core.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About