line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::shufflerow; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
46628
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
App::shufflerow - A command utility of shuffling the lines (even the paragraphs) with many useful functions together. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Try: |
12
|
|
|
|
|
|
|
seq 10 | shufflerow -g 3 # get 3 lines. |
13
|
|
|
|
|
|
|
seq 10 | shufflerow -g 3 -s 123 # fix the random seed. |
14
|
|
|
|
|
|
|
seq 10 | shufflerow -g 5 -0 # preserver the input order |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
shufflerow --help # help manual (mainly in Japanese) |
17
|
|
|
|
|
|
|
shufflerow --help opt # only show the help manual of options. |
18
|
|
|
|
|
|
|
shufflerow -= # assumes the heading line(chunk) as special so that everytime it would be shown. |
19
|
|
|
|
|
|
|
shufflerow -: # show the input line(chunk) number. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 VERSION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Version 0.32 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our $VERSION = '0.32'; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Invoke the command line 'shufflerow --help' to see how to use the command shufflerow. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 BUGS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Please report any bugs or feature requests to C, or through |
42
|
|
|
|
|
|
|
the web interface at L. I will be notified, and then you'll |
43
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SUPPORT |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
perldoc App::shufflerow |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
You can also look for information at: |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=over 4 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker (report bugs here) |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
L |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
L |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * CPAN Ratings |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * Search CPAN |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
L |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
84
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
85
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
86
|
|
|
|
|
|
|
(at your option) any later version. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
89
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
90
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
91
|
|
|
|
|
|
|
GNU General Public License for more details. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
94
|
|
|
|
|
|
|
along with this program. If not, see L. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=cut |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
1; # End of App::shufflerow |