line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
153
|
|
2
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
72
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package |
5
|
|
|
|
|
|
|
XHTML::Instrumented::Form::Option; |
6
|
2
|
|
|
2
|
|
9
|
use base 'XHTML::Instrumented::Form::ElementControl'; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
613
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub as_args |
9
|
|
|
|
|
|
|
{ |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
|
|
|
|
|
my %hash = %$self; |
12
|
0
|
|
|
|
|
|
delete $hash{text}; |
13
|
0
|
0
|
|
|
|
|
if ($hash{disabled}) { |
14
|
0
|
|
|
|
|
|
$hash{disabled} = 'disabled'; |
15
|
|
|
|
|
|
|
} |
16
|
0
|
0
|
|
|
|
|
if ($hash{selected}) { |
17
|
0
|
|
|
|
|
|
$hash{selected} = 'selected'; |
18
|
|
|
|
|
|
|
} |
19
|
0
|
|
|
|
|
|
%hash; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub selected |
23
|
|
|
|
|
|
|
{ |
24
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
$self->{selected}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub disabled |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
$self->{disabled}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub text |
37
|
|
|
|
|
|
|
{ |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
$self->{text}; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub value |
44
|
|
|
|
|
|
|
{ |
45
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
46
|
|
|
|
|
|
|
|
47
|
0
|
0
|
|
|
|
|
$self->{value} || $self->{text}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |