| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package CLI::Table::Util; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
48476
|
use 5.006; |
|
|
1
|
|
|
|
|
3
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
15
|
|
|
5
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
41
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
CLI::Table::Util - If you are given table text file, what would you do? This provides CLI commands "colsummary", "colsplit", "colchop" and so on. |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.06 |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.06'; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
This module provides the following programs : |
|
23
|
|
|
|
|
|
|
1. colsummary -- gives sevelral useful information about each columns of a table by this one-shot command. |
|
24
|
|
|
|
|
|
|
2. colsplit -- divides a TSV file into files each contains each original column. |
|
25
|
|
|
|
|
|
|
3. colchop -- limits the column string lenghs by folding or omitting for the sake of viewing. |
|
26
|
|
|
|
|
|
|
4. csv2tsv -- transforms from CSV (RFC4180) into TSV format. |
|
27
|
|
|
|
|
|
|
5. colgrep -- performs "grep" on only spcified column. |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
To know the detail of the commands, please read the documents invoked by "--help" such as |
|
30
|
|
|
|
|
|
|
"colsummary --help" etc. |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 AUTHOR |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 BUGS |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Please report any bugs or feature requests to C, or through |
|
39
|
|
|
|
|
|
|
the web interface at L. I will be notified, and then you'll |
|
40
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SUPPORT |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
perldoc CLI::Table::Util |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
|
59
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
60
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
|
61
|
|
|
|
|
|
|
(at your option) any later version. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
|
64
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
65
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
66
|
|
|
|
|
|
|
GNU General Public License for more details. |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
|
69
|
|
|
|
|
|
|
along with this program. If not, see L. |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
1; # End of CLI::Table::Util |