This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
prevent mro.pm from loading DynaLoader
authorGraham Knop <haarg@haarg.org>
Sat, 15 Apr 2017 14:23:11 +0000 (16:23 +0200)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 2 Jun 2017 12:39:59 +0000 (13:39 +0100)
commit8ef5f0698395e173e3e7fc6397d5846e1c5d59d0
tree49cc3c497742982aa9bd6f849d590223de810d43
parent899fb8883769d254c4cfce1f9790ffe68bbc02a8
prevent mro.pm from loading DynaLoader

XSLoader::load cares about the package it is called from.  If it is a
different package from what you are trying to load, it falls back to
loading and using DynaLoader.

Move the load call to be in the mro package as it should be, so that it
doesn't trigger needless extra load.
ext/mro/mro.pm