line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
131
|
use strict; |
|
26
|
|
|
|
|
53
|
|
|
26
|
|
|
|
|
896
|
|
2
|
26
|
|
|
26
|
|
158
|
use warnings; |
|
26
|
|
|
|
|
47
|
|
|
26
|
|
|
|
|
1238
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: a tolerance "m == n" |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::constant; |
7
|
26
|
|
|
26
|
|
17158
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
7803
|
|
|
26
|
|
|
|
|
152
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
1
|
10
|
sub construct { shift; $_[0] } |
|
4
|
|
|
|
|
13
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
11
|
|
|
11
|
1
|
20
|
my $self = shift; |
13
|
11
|
|
|
|
|
61
|
return $self->normalize_number($_[0]); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub valid_args { |
17
|
59
|
|
|
59
|
1
|
94
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
59
|
|
|
|
|
245
|
my $number = $self->normalize_number($_[0]); |
20
|
|
|
|
|
|
|
|
21
|
59
|
100
|
|
|
|
288
|
return unless defined $number; |
22
|
|
|
|
|
|
|
|
23
|
42
|
100
|
|
|
|
121
|
return $number if @_ == 1; |
24
|
|
|
|
|
|
|
|
25
|
38
|
|
|
|
|
217
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |