| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package CLI::KeyValue::Hack; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
65845
|
use 5.006; |
|
|
1
|
|
|
|
|
3
|
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
19
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
48
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
CLI::KeyValue::Hack - Provides CLI commands for key-value text data files in TSV. |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.07 |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.07'; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
This module provides the following utility CLI commands for Key-Value type TSV data. |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1. wisejoin : combines 2 files using the key columns. Similar to Unix join and SQL join. |
|
25
|
|
|
|
|
|
|
2. keyvalues : how many different VALUES each KEY has? |
|
26
|
|
|
|
|
|
|
3. kvcmp : Are the relation between the key and the value is same/different over 2 files? |
|
27
|
|
|
|
|
|
|
4. polar : combines many files using each key column each of the files has. |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 EXPORT |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Nothing would be exported. |
|
32
|
|
|
|
|
|
|
(The CLI program files each is stand-alone Perl script are provided.) |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
|
39
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
40
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
|
41
|
|
|
|
|
|
|
(at your option) any later version. |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
|
44
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
45
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
46
|
|
|
|
|
|
|
GNU General Public License for more details. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
|
49
|
|
|
|
|
|
|
along with this program. If not, see L. |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; # End of CLI::KeyValue::Hack |