diff options
author | 2019-12-30 02:10:02 +0000 | |
---|---|---|
committer | 2019-12-30 02:10:02 +0000 | |
commit | f3efcd0145415b7d44d9da97e0ad5c21b186ac61 (patch) | |
tree | d6abf0994f508740c446dec46e925b7dc7572459 /gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm | |
parent | Populate logical disk port WWNs with their RAID volume's WWID (diff) | |
download | wireguard-openbsd-f3efcd0145415b7d44d9da97e0ad5c21b186ac61.tar.xz wireguard-openbsd-f3efcd0145415b7d44d9da97e0ad5c21b186ac61.zip |
Import perl-5.30.1
Timing is good deraadt@, OK sthen@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm')
-rw-r--r-- | gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm b/gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm index 9e69f832300..0c403d41b79 100644 --- a/gnu/usr.bin/perl/cpan/Module-Load/lib/Module/Load.pm +++ b/gnu/usr.bin/perl/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. |