line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
15
|
|
|
15
|
|
996
|
|
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
111
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2019'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Moo; |
7
|
15
|
|
|
15
|
|
94
|
use namespace::clean; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
95
|
|
8
|
15
|
|
|
15
|
|
4850
|
|
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
93
|
|
9
|
|
|
|
|
|
|
with 'Catmandu::Fix::Base'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my ($self, $fixer) = @_; |
12
|
|
|
|
|
|
|
$fixer->emit_reject; |
13
|
26
|
|
|
26
|
0
|
57
|
} |
14
|
26
|
|
|
|
|
81
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Catmandu::Fix::reject - remove a record form the data |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Reject all items from from the output |
27
|
|
|
|
|
|
|
reject() |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Reject all items with have an 'ignore_me' field |
30
|
|
|
|
|
|
|
reject exists(ignore_me) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Reject all items with have a 'ignore' field with value 'true' |
33
|
|
|
|
|
|
|
reject all_match(ignore,true) |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# Select all items |
36
|
|
|
|
|
|
|
select() |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# Select only those items that have an 'include_me' field |
39
|
|
|
|
|
|
|
select exists(include_me) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# Select only those items that have an 'include' field with value 'true' |
42
|
|
|
|
|
|
|
select all_match(include,true) |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SEE ALSO |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
L<Catmandu::Fix> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |