blib/lib/App/colalign.pm untested

filter: Statementstmt 0.0% 0 / 2 totaltotal 0.0% 0 / 2 SCAR -
1 package App::colalign ;
2 our $VERSION = '0.022' ;
3 our $DATE = '2023-08-12T00:40+09:00' ;
4  
5 =encoding utf8
6  
7 =head1 NAME
8  
9 App::colalign -- Align the number of columns on each line upon TSV input.
10  
11 =head1 SYNOPSIS
12  
13 This module provides a Unix-like command `F<colalign>'.
14 This command `colalign' gets the TSV formatted file into the output
15 consisting with all the lines each of which packed with the number
16 of columns at least NUM where NUM is specified by the option -a.
17 It is useful when a large TSV file containg glitches such as
18 containing extra new line characters in the middle of a line.
19  
20 =head1 DESCRIPTION
21  
22 colalign -a NUM # Align the number of columns into the number NUM.
23  
24 Options :
25  
26 -c str : Specifies the character string replacing an extra new line character. If not specified it is "#n#".
27 -i str : Specifies the column separator on the input. If not specified it is "\t" (tab character).
28 -1 REGEX : If a line contains only one column : if it matches the REGEX, it is regarded as a next line. Otherwise, it is regarded as of the previous line.
29  
30 =head1 SEE ALSO
31  
32 App::colsummary
33 App::csel
34 App::collen (to be published, soon after Aug 2023)
35 App::alluniq (to be published, soon after Aug 2023)
36  
37 =head1 AUTHOR
38  
39 下野寿之 Toshiyuki SHIMONO <bin4tsv@gmail.com> The Institute of Statistical Mathematics, a visiting researcher.
40  
41 =head1 COPYRIGHT AND LICENSE
42  
43 Copyright (c) 2023 Toshiyuki SHIMONO. All rights reserved.
44 This program is free software; you can redistribute it and/or
45 modify it under the same terms as Perl itself.
46  
47 =cut
48  
49 1 ;