diff options
author | Nicolas R <atoomic@cpan.org> | 2019-02-13 17:58:31 -0600 |
---|---|---|
committer | Nicolas R <atoomic@cpan.org> | 2019-02-13 17:58:59 -0600 |
commit | df56252693bd11e327028760933a76b8c071fdea (patch) | |
tree | 0d4d1443269a371807075d65b5d45889817de43b /cpan/Module-Load/lib/Module/Load.pm | |
parent | 7835a09a181366ad4d4188409a4c0e3a6236fcf5 (diff) | |
download | perl-df56252693bd11e327028760933a76b8c071fdea.tar.gz |
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)
Diffstat (limited to 'cpan/Module-Load/lib/Module/Load.pm')
-rw-r--r-- | cpan/Module-Load/lib/Module/Load.pm | 24 |
1 files changed, 21 insertions, 3 deletions
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. |