line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CLI::Numbers::Hack; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
49376
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
CLI::Numbers::Hack - commands for handling a bunch of numbers for `finding denominator', `N-th min/max', `cumulative sum' and so on. |
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.21 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.21'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
PROVIDED COMMAND LINE INTERFACE programs : |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1. nums -- an expansion of the Unix/Linux command `seq'. |
24
|
|
|
|
|
|
|
2. cumsum -- shows the cumulative sum for a sequence of numbers separated by line ends. |
25
|
|
|
|
|
|
|
3. minmax -- shows the N-th minimums and N-th maximums of a number sequence. |
26
|
|
|
|
|
|
|
4. denomfind -- helps to find the common denominator from bunch of decimals. Useful to find N of a questionnaire results. |
27
|
|
|
|
|
|
|
4. rounding -- outputs the rounded numbers. (The name of this command would change in the future.. ) |
28
|
|
|
|
|
|
|
5. zeropad -- outputs the zero-padded numbers. |
29
|
|
|
|
|
|
|
6. meanvar -- shows the mean (average) and the variance of a sequence of numbers. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
All programs provides help-manual that is availble such as by "cumsum --help". |
32
|
|
|
|
|
|
|
If you want to see only "switch options", do "cumsum --help opt(ions)". |
33
|
|
|
|
|
|
|
Sorry the most part of the manual is written only in Japanese. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Some commands are immature in user interface (such as `denomfind') (the the version number is low) |
36
|
|
|
|
|
|
|
but the author just want to provide these commands above for some good usage. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
44
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
45
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
46
|
|
|
|
|
|
|
(at your option) any later version. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
49
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
50
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
51
|
|
|
|
|
|
|
GNU General Public License for more details. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
54
|
|
|
|
|
|
|
along with this program. If not, see L. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; # End of CLI::Numbers::Hack |