In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/df56252693bd11e327028760933a76b8c071fdea?hp=7835a09a181366ad4d4188409a4c0e3a6236fcf5>
- Log ----------------------------------------------------------------- commit df56252693bd11e327028760933a76b8c071fdea Author: Nicolas R <[email protected]> Date: Wed Feb 13 17:58:31 2019 -0600 Update Module-Load to CPAN version 0.34 [DELTA] 0.34 Sun Feb 10 13:56:54 GMT 2019 * Added SEE ALSO section to documentation. RT#100575 * Unreachable code cleanup (https://github.com/jib/cpanplus-devel/pull/15) ----------------------------------------------------------------------- Summary of changes: Porting/Maintainers.pl | 2 +- cpan/Module-Load/lib/Module/Load.pm | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index e88b33d79e..389b3f8529 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -786,7 +786,7 @@ use File::Glob qw(:case); }, 'Module::Load' => { - 'DISTRIBUTION' => 'BINGOS/Module-Load-0.32.tar.gz', + 'DISTRIBUTION' => 'BINGOS/Module-Load-0.34.tar.gz', 'FILES' => q[cpan/Module-Load], }, diff --git a/cpan/Module-Load/lib/Module/Load.pm b/cpan/Module-Load/lib/Module/Load.pm index 9e69f83230..0c403d41b7 100644 --- a/cpan/Module-Load/lib/Module/Load.pm +++ b/cpan/Module-Load/lib/Module/Load.pm @@ -1,6 +1,6 @@ package Module::Load; -$VERSION = '0.32'; +$VERSION = '0.34'; use strict; use warnings; @@ -92,8 +92,7 @@ sub _load{ $import = $mod->can('import') ) and ( unshift(@_, $mod), - goto &$import, - return + goto &$import ) ); } @@ -334,6 +333,25 @@ C<Module::Load> cannot do implicit imports, only explicit imports. to import from a module, even if the functions are in that modules' C<@EXPORT>) +=head1 SEE ALSO + +L<Module::Runtime> provides functions for loading modules, +checking the validity of a module name, +converting a module name to partial C<.pm> path, +and related utility functions. + +L<"require" in perlfunc|https://metacpan.org/pod/perlfunc#require> +and +L<"use" in perlfunc|https://metacpan.org/pod/perlfunc#use>. + +L<Mojo::Loader> is a "class loader and plugin framework", +and is included in the +L<Mojolicious|https://metacpan.org/release/Mojolicious> distribution. + +L<Module::Loader> is a module for finding and loading modules +in a given namespace, inspired by C<Mojo::Loader>. + + =head1 ACKNOWLEDGEMENTS Thanks to Jonas B. Nielsen for making explicit imports work. -- Perl5 Master Repository
