line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Perlinfo::Base; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use HTML::Perlinfo::Common; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
111
|
|
5
|
1
|
|
|
1
|
|
342
|
use HTML::Perlinfo::General; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
60
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp (); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
12
|
|
7
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
8
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1217
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
0
|
|
|
0
|
0
|
|
my ($class, %params) = @_; |
12
|
0
|
|
|
|
|
|
my $self = {}; |
13
|
0
|
|
|
|
|
|
$self->{full_page} = 1; |
14
|
0
|
|
|
|
|
|
$self->{title} = 0; |
15
|
0
|
|
|
|
|
|
$self->{bg_image} = ''; |
16
|
0
|
|
|
|
|
|
$self->{bg_position} = 'center'; |
17
|
0
|
|
|
|
|
|
$self->{bg_repeat} = 'no_repeat'; |
18
|
0
|
|
|
|
|
|
$self->{bg_attribute} = 'fixed'; |
19
|
0
|
|
|
|
|
|
$self->{bg_color} = '#ffffff'; |
20
|
0
|
|
|
|
|
|
$self->{ft_family} = 'sans-serif'; |
21
|
0
|
|
|
|
|
|
$self->{ft_color} = '#000000'; |
22
|
0
|
|
|
|
|
|
$self->{lk_color} = '#000099'; |
23
|
0
|
|
|
|
|
|
$self->{lk_decoration} = 'none'; |
24
|
0
|
|
|
|
|
|
$self->{lk_bgcolor} = ''; |
25
|
0
|
|
|
|
|
|
$self->{lk_hvdecoration} = 'underline'; |
26
|
0
|
|
|
|
|
|
$self->{header_bgcolor} = '#9999cc'; |
27
|
0
|
|
|
|
|
|
$self->{header_ftcolor} = '#000000'; |
28
|
0
|
|
|
|
|
|
$self->{leftcol_bgcolor} = '#ccccff'; |
29
|
0
|
|
|
|
|
|
$self->{leftcol_ftcolor} = '#000000'; |
30
|
0
|
|
|
|
|
|
$self->{rightcol_bgcolor} = '#cccccc'; |
31
|
0
|
|
|
|
|
|
$self->{rightcol_ftcolor} = '#000000'; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
foreach my $key (keys %params) { |
34
|
0
|
0
|
|
|
|
|
if (exists $self->{$key}) { |
35
|
0
|
|
|
|
|
|
$self->{$key} = $params{$key}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
else { |
38
|
0
|
|
|
|
|
|
error_msg("$key is an invalid attribute"); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
bless $self, $class; |
43
|
0
|
|
|
|
|
|
return $self; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub info_all { |
48
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
49
|
0
|
|
|
|
|
|
my %param = @_; |
50
|
0
|
0
|
0
|
|
|
|
error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY'); |
|
|
|
0
|
|
|
|
|
51
|
0
|
0
|
|
|
|
|
$self->links(@{$param{'links'}}) if exists $param{'links'}; |
|
0
|
|
|
|
|
|
|
52
|
0
|
|
|
|
|
|
my $html; |
53
|
0
|
0
|
|
|
|
|
$self->{title} = 'perlinfo(INFO_ALL)' unless $self->{title}; |
54
|
0
|
0
|
|
|
|
|
$html .= $self->print_htmlhead() if $self->{full_page}; |
55
|
0
|
|
|
|
|
|
$html .= print_general(); |
56
|
0
|
|
|
|
|
|
$html .= print_variables(); |
57
|
0
|
|
|
|
|
|
$html .= print_thesemodules('core'); |
58
|
0
|
|
|
|
|
|
$html .= print_license(); |
59
|
0
|
0
|
|
|
|
|
$html .= " |