line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package BERT::Boolean; |
2
|
6
|
|
|
6
|
|
34
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
214
|
|
3
|
6
|
|
|
6
|
|
33
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
408
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
|
|
45
|
use overload bool => \&value, |
6
|
6
|
|
|
6
|
|
32
|
fallback => 1; |
|
6
|
|
|
|
|
11
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
10
|
|
|
10
|
1
|
17
|
my ($class, $value) = @_; |
10
|
10
|
100
|
|
|
|
21
|
$value = $value ? 1 : 0; |
11
|
10
|
|
|
|
|
45
|
return bless \$value, $class; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub value { |
15
|
16
|
|
|
16
|
1
|
772
|
return ${ $_[0] }; |
|
16
|
|
|
|
|
79
|
|
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub true { |
19
|
4
|
|
|
4
|
0
|
318
|
return $_[0]->new(1); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub false { |
23
|
4
|
|
|
4
|
0
|
265
|
return $_[0]->new(0); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |