line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
132
|
use strict; |
|
26
|
|
|
|
|
161
|
|
|
26
|
|
|
|
|
598
|
|
2
|
26
|
|
|
26
|
|
104
|
use warnings; |
|
26
|
|
|
|
|
37
|
|
|
26
|
|
|
|
|
883
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: a tolerance "m == n" |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::constant; |
7
|
26
|
|
|
26
|
|
105
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
34
|
|
|
26
|
|
|
|
|
153
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
1
|
7
|
sub construct { shift; $_[0] } |
|
4
|
|
|
|
|
8
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
5
|
|
|
5
|
1
|
10
|
my $self = shift; |
13
|
5
|
|
|
|
|
25
|
return $self->normalize_number($_[0]); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub valid_args { |
17
|
85
|
|
|
85
|
1
|
128
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
85
|
|
|
|
|
216
|
my $number = $self->normalize_number($_[0]); |
20
|
|
|
|
|
|
|
|
21
|
85
|
100
|
|
|
|
171
|
return unless defined $number; |
22
|
|
|
|
|
|
|
|
23
|
72
|
100
|
|
|
|
143
|
return $number if @_ == 1; |
24
|
|
|
|
|
|
|
|
25
|
68
|
|
|
|
|
164
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |