summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/Module/Load.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Module/Load.pm')
-rw-r--r--Master/tlpkg/tlperl/lib/Module/Load.pm24
1 files changed, 21 insertions, 3 deletions
diff --git a/Master/tlpkg/tlperl/lib/Module/Load.pm b/Master/tlpkg/tlperl/lib/Module/Load.pm
index 9e69f832300..0c403d41b79 100644
--- a/Master/tlpkg/tlperl/lib/Module/Load.pm
+++ b/Master/tlpkg/tlperl/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.