| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Acme::CPANModules::ModuleAutoloaders; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
444343
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
192
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
6
|
|
|
|
|
|
|
our $DATE = '2023-11-20'; # DATE |
|
7
|
|
|
|
|
|
|
our $DIST = 'Acme-CPANModules-ModuleAutoloaders'; # DIST |
|
8
|
|
|
|
|
|
|
our $VERSION = '0.003'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $LIST = { |
|
11
|
|
|
|
|
|
|
summary => 'List of modules that autoload other modules', |
|
12
|
|
|
|
|
|
|
description => <<'_', |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
"Module autoloader" modules work using Perl's autoloading mechanism (read |
|
15
|
|
|
|
|
|
|
`perlsub` for more details). By declaring a subroutine named `AUTOLOAD` in the |
|
16
|
|
|
|
|
|
|
`UNIVERSAL` package, you setup a fallback mechanism when you call an undefined |
|
17
|
|
|
|
|
|
|
subroutine. The module autoloader's's AUTOLOADER loads the module using e.g. |
|
18
|
|
|
|
|
|
|
or plain `require()` then try to invoke the undefined |
|
19
|
|
|
|
|
|
|
subroutine once again. |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
These modules are usually convenient for one-liner usage. |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
_ |
|
24
|
|
|
|
|
|
|
entries => [ |
|
25
|
|
|
|
|
|
|
{module => 'L'}, |
|
26
|
|
|
|
|
|
|
{module => 'Class::Autouse'}, |
|
27
|
|
|
|
|
|
|
], |
|
28
|
|
|
|
|
|
|
}; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
|
31
|
|
|
|
|
|
|
# ABSTRACT: List of modules that autoload other modules |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |