line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Pure::UndefObject; |
2
|
|
|
|
|
|
|
|
3
|
27
|
|
|
27
|
|
85
|
use strict; |
|
27
|
|
|
|
|
31
|
|
|
27
|
|
|
|
|
599
|
|
4
|
27
|
|
|
27
|
|
89
|
use warnings; |
|
27
|
|
|
|
|
29
|
|
|
27
|
|
|
|
|
523
|
|
5
|
27
|
|
|
27
|
|
79
|
use Scalar::Util 'blessed'; |
|
27
|
|
|
|
|
29
|
|
|
27
|
|
|
|
|
1797
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use overload |
8
|
0
|
|
|
0
|
|
0
|
'bool' => sub { 0 }, |
9
|
0
|
|
|
0
|
|
0
|
'!' => sub { 1 }, |
10
|
0
|
|
|
0
|
|
0
|
q{""} => sub { undef }, |
11
|
27
|
|
|
27
|
|
93
|
'fallback' => 1; |
|
27
|
|
|
|
|
28
|
|
|
27
|
|
|
|
|
205
|
|
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
0
|
7
|
sub can { 1 } # probably evil... |
14
|
2
|
|
|
2
|
|
4
|
sub AUTOLOAD { shift } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub maybe { |
17
|
1
|
50
|
|
1
|
0
|
3
|
blessed $_[0] ? $_[0] : do { |
18
|
1
|
|
|
|
|
1
|
my ($class, $obj) = @_; |
19
|
1
|
50
|
|
|
|
4
|
defined $obj ? $obj : |
20
|
|
|
|
|
|
|
bless {}, $class }; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |