line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# You may distribute under the terms of either the GNU General Public License |
2
|
|
|
|
|
|
|
# or the Artistic License (the same terms as Perl itself) |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# (C) Paul Evans, 2018 -- leonerd@leonerd.org.uk |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Commandable 0.10; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
480
|
use v5.14; |
|
1
|
|
|
|
|
4
|
|
9
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
C - utilities for commandline-based programs |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
This distribution contains a collection of utilities extracted from various |
18
|
|
|
|
|
|
|
commandline-based programs I have written, in the hope of trying to find a |
19
|
|
|
|
|
|
|
standard base to build these from in future. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Note that "commandline" does not necessarily mean "plain-text running in a |
22
|
|
|
|
|
|
|
terminal"; simply that the mode of operation is that the user types a textual |
23
|
|
|
|
|
|
|
representation of some action, and the program parses this text in order to |
24
|
|
|
|
|
|
|
perform it. This could equally apply to a command input text area in a GUI |
25
|
|
|
|
|
|
|
program. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 AUTHOR |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Paul Evans |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
0x55AA; |