line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Plugin::ScalarUtil; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
117808
|
$Template::Plugin::ScalarUtil::AUTHORITY = 'cpan:AJGB'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
$Template::Plugin::ScalarUtil::VERSION = '1.121160'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
# ABSTRACT: Scalar::Util plugin for Template-Toolkit |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
15
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
48
|
|
11
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
145
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
10
|
use base qw( Template::Plugin ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1337
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
1507
|
use Scalar::Util qw(); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
{ |
19
|
1
|
|
|
1
|
|
6
|
no strict 'refs'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
234
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
do { |
22
|
|
|
|
|
|
|
my $func = $_; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my $call = Scalar::Util->can($func) |
25
|
|
|
|
|
|
|
or die "$func not exported by Scalar::Util"; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
*{__PACKAGE__ ."::$func"} = sub { |
28
|
21
|
|
|
21
|
|
375973
|
shift @_; |
29
|
|
|
|
|
|
|
|
30
|
21
|
|
|
|
|
163
|
$call->(@_); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} for qw( |
33
|
|
|
|
|
|
|
blessed dualvar reftype tainted |
34
|
|
|
|
|
|
|
openhandle refaddr isvstring looks_like_number |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |