Skip Menu |

This queue is for tickets about the Module-Runtime CPAN distribution.

Report information
The Basics
Id: 74805
Status: resolved
Priority: 0/
Queue: Module-Runtime

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Usage of parent.pm / suitability for the gold standard of runtime-require
I re-read [1] last night, and figured since M::R is basically already doing all of this, so I could harass authors into loading modules using this, and centralize on a sane require mechanism. In particular parent.pm is using an unsafe require, however it is a dependency of M::R. Would you be averse to replacing the `use parent 'Exporter'`, with the old-style `require Exporter; our @ISA = 'Exporter'` ? If the case I can file a parent.pm bug recommending a switch to M::R::require_module(). Cheers! [1] http://blogs.perl.org/users/michael_g_schwern/2011/10/how-not-to-load-a-module-or-bad-interfaces-make-good-people-do-bad-things.html
I forgot to note that I am aware that parent.pm is core since 5.10. This doesn't help with the 5.8 and older situation of course.
Now avoids ALL module use (warnings, strict, parent, Exporter) in Module-Runtime-0.012.