line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Tag::Load; |
2
|
2
|
|
|
2
|
|
1195
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
2
|
|
|
2
|
|
4
|
|
|
2
|
|
|
2
|
|
47
|
|
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
109
|
|
|
2
|
|
|
|
|
51
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
70
|
|
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
10
|
use DTL::Fast::Template; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
406
|
|
5
|
|
|
|
|
|
|
$DTL::Fast::TAG_HANDLERS{'load'} = __PACKAGE__; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
2
|
|
|
2
|
0
|
4
|
my $proto = shift; |
10
|
2
|
|
|
|
|
3
|
my $parameter = shift; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
|
|
13
|
$parameter =~ s/(^\s+|['"]+|\s+$)//gs; |
13
|
2
|
|
|
|
|
8
|
my @modules = split /\s+/, $parameter; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
5
|
foreach my $module (@modules) |
16
|
|
|
|
|
|
|
{ |
17
|
2
|
100
|
|
|
|
8
|
if( not $DTL::Fast::LOADED_MODULES{$module} ) |
18
|
|
|
|
|
|
|
{ |
19
|
1
|
|
|
|
|
6
|
require Module::Load; |
20
|
1
|
|
|
|
|
4
|
Module::Load::load $module; |
21
|
1
|
|
|
|
|
94
|
$DTL::Fast::LOADED_MODULES{$module} = time; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
|
|
8
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |