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