line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2013-2017 by [Mark Overmeer]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
54252
|
use warnings; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
79
|
|
7
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
71
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Log::Report::Optional; |
10
|
2
|
|
|
2
|
|
10
|
use vars '$VERSION'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
100
|
|
11
|
|
|
|
|
|
|
$VERSION = '1.04'; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
10
|
use base 'Exporter'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
307
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my ($supported, @used_by); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
BEGIN { |
19
|
2
|
50
|
|
2
|
|
10
|
if($INC{'Log/Report.pm'}) |
20
|
0
|
|
|
|
|
0
|
{ $supported = 'Log::Report'; |
21
|
0
|
|
|
|
|
0
|
my $version = $Log::Report::VERSION; |
22
|
0
|
0
|
0
|
|
|
0
|
die "Log::Report too old for ::Optional, need at least 1.00" |
23
|
|
|
|
|
|
|
if $version && $version le '1.00'; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
else |
26
|
2
|
|
|
|
|
287
|
{ require Log::Report::Minimal; |
27
|
2
|
|
|
|
|
159
|
$supported = 'Log::Report::Minimal'; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub import(@) |
32
|
2
|
|
|
2
|
|
19
|
{ my $class = shift; |
33
|
2
|
|
|
|
|
7
|
push @used_by, (caller)[0]; |
34
|
2
|
|
|
|
|
9
|
$supported->import('+1', @_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
1
|
1
|
1264
|
sub usedBy() { @used_by } |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |