line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
160
|
use strict; |
|
26
|
|
|
|
|
52
|
|
|
26
|
|
|
|
|
792
|
|
2
|
26
|
|
|
26
|
|
133
|
use warnings; |
|
26
|
|
|
|
|
50
|
|
|
26
|
|
|
|
|
896
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: an infinite tolerance |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::infinite; |
7
|
26
|
|
|
26
|
|
119
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
42
|
|
|
26
|
|
|
|
|
152
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
1
|
10
|
sub construct { shift; { value => 0 } } |
|
7
|
|
|
|
|
18
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
27
|
|
|
27
|
1
|
55
|
my ($self, $string, $factory) = @_; |
13
|
27
|
100
|
|
|
|
71
|
return $factory->new('infinite') if $string =~ m!\Aany\s+number\z!; |
14
|
26
|
|
|
|
|
62
|
return; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
85
|
|
|
85
|
1
|
125
|
sub valid_args { shift; |
18
|
85
|
100
|
100
|
|
|
287
|
return ($_[0]) if @_ == 1 and defined $_[0] and $_[0] eq 'infinite'; |
|
|
|
100
|
|
|
|
|
19
|
78
|
|
|
|
|
177
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |