line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Input::Validator::Bulk; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
216
|
use strict; |
|
9
|
|
|
|
|
185
|
|
|
9
|
|
|
|
|
5864
|
|
4
|
9
|
|
|
9
|
|
382
|
use warnings; |
|
9
|
|
|
|
|
573
|
|
|
9
|
|
|
|
|
1009
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
403
|
use base 'Input::Validator::Base'; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
2806
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub BUILD { |
9
|
5
|
|
|
5
|
0
|
8
|
my $self = shift; |
10
|
|
|
|
|
|
|
|
11
|
5
|
|
50
|
|
|
35
|
$self->{fields} ||= []; |
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
|
|
22
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub each { |
17
|
4
|
|
|
4
|
1
|
8
|
my $self = shift; |
18
|
4
|
|
|
|
|
6
|
my $cb = shift; |
19
|
|
|
|
|
|
|
|
20
|
4
|
|
|
|
|
7
|
foreach my $field (@{$self->{fields}}) { |
|
4
|
|
|
|
|
12
|
|
21
|
8
|
|
|
|
|
23
|
$cb->($field); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
|
|
18
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |