line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::Lazy::CookieMonster; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use CGI::Lazy::Globals; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
256
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------------- |
8
|
|
|
|
|
|
|
sub getCookie { |
9
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
10
|
0
|
|
|
|
|
|
my $cookie = shift; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
return $self->q->cookie($cookie); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------------- |
16
|
|
|
|
|
|
|
sub goodEnoughForMe { |
17
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
18
|
0
|
|
|
|
|
|
my $cookie = shift; |
19
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
return $cookie ? TRUE : FALSE; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------------- |
24
|
|
|
|
|
|
|
sub q { |
25
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return $self->{_q}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------------- |
31
|
|
|
|
|
|
|
sub new { |
32
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
33
|
0
|
|
|
|
|
|
my $q = shift; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $self = {_q => $q}; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
bless $self, $class; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |