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