line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
131
|
use strict; |
|
26
|
|
|
|
|
51
|
|
|
26
|
|
|
|
|
844
|
|
2
|
26
|
|
|
26
|
|
145
|
use warnings; |
|
26
|
|
|
|
|
52
|
|
|
26
|
|
|
|
|
1214
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: an infinite tolerance |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::infinite; |
7
|
26
|
|
|
26
|
|
130
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
45
|
|
|
26
|
|
|
|
|
148
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
1
|
12
|
sub construct { shift; { value => 0 } } |
|
7
|
|
|
|
|
24
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
23
|
|
|
23
|
1
|
52
|
my ($self, $string, $factory) = @_; |
13
|
23
|
100
|
|
|
|
73
|
return $factory->new('infinite') if $string =~ m!\Aany\s+number\z!; |
14
|
22
|
|
|
|
|
87
|
return; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
91
|
|
|
91
|
1
|
126
|
sub valid_args { shift; |
18
|
91
|
100
|
100
|
|
|
454
|
return ($_[0]) if @_ == 1 and defined $_[0] and $_[0] eq 'infinite'; |
|
|
|
100
|
|
|
|
|
19
|
84
|
|
|
|
|
393
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |