line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
4763
|
use 5.014; # because we use the 'state' and 'non-destructive substitution' feature (s///r) |
|
1
|
|
|
|
|
15
|
|
2
|
1
|
|
|
1
|
|
16
|
use strict; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
56
|
|
3
|
1
|
|
|
1
|
|
22
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
175
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Banal::Dist::Util; # git description: v0.003-2-g3efaa56 |
6
|
|
|
|
|
|
|
# vim: set ts=2 sts=2 sw=2 tw=115 et : |
7
|
|
|
|
|
|
|
# ABSTRACT: General purpose utility collection mainly used by |
8
|
|
|
|
|
|
|
# KEYWORDS: author utility |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.004'; |
11
|
|
|
|
|
|
|
# AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
852
|
use Path::Tiny qw(path); |
|
1
|
|
|
|
|
12566
|
|
|
1
|
|
|
|
|
127
|
|
15
|
1
|
|
|
1
|
|
753
|
use Data::Printer; # DEBUG aid. |
|
1
|
|
|
|
|
41642
|
|
|
1
|
|
|
|
|
9
|
|
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
639
|
use Exporter::Shiny qw( pause_config ); |
|
1
|
|
|
|
|
4117
|
|
|
1
|
|
|
|
|
9
|
|
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
550
|
use namespace::autoclean; |
|
1
|
|
|
|
|
15325
|
|
|
1
|
|
|
|
|
18
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# return username, password from ~/.pause |
23
|
|
|
|
|
|
|
sub pause_config_alt # Hmmm. We've got a similar named routine in *::Pause.pm |
24
|
|
|
|
|
|
|
{ |
25
|
0
|
|
0
|
0
|
0
|
|
my $file = path($ENV{HOME} // 'oops', '.pause'); |
26
|
0
|
0
|
|
|
|
|
return if not -e $file; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my ($username, $password) = map { |
29
|
0
|
|
|
|
|
|
my (undef, $val) = split ' ', $_; $val # awk-style whitespace splitting |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} $file->lines; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |