| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package TableData::Munge::MungeColumns; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
456589
|
use 5.010001; |
|
|
1
|
|
|
|
|
5
|
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
40
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
76
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
583
|
use Role::Tiny::With; |
|
|
1
|
|
|
|
|
8793
|
|
|
|
1
|
|
|
|
|
277
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
10
|
|
|
|
|
|
|
our $DATE = '2024-05-14'; # DATE |
|
11
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
|
12
|
|
|
|
|
|
|
our $VERSION = '0.025'; # VERSION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
with 'TableDataRole::Munge::MungeColumns'; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our %SPEC; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
$SPEC{new} = { |
|
19
|
|
|
|
|
|
|
v => 1.1, |
|
20
|
|
|
|
|
|
|
is_meth => 1, |
|
21
|
|
|
|
|
|
|
is_func => 0, |
|
22
|
|
|
|
|
|
|
args => { |
|
23
|
|
|
|
|
|
|
tabledata => { |
|
24
|
|
|
|
|
|
|
schema => 'any*', # TMP |
|
25
|
|
|
|
|
|
|
req => 1, |
|
26
|
|
|
|
|
|
|
}, |
|
27
|
|
|
|
|
|
|
munge_column_names => { |
|
28
|
|
|
|
|
|
|
schema => ['any*', of=>['str*', 'code*']], |
|
29
|
|
|
|
|
|
|
req => 1, |
|
30
|
|
|
|
|
|
|
}, |
|
31
|
|
|
|
|
|
|
munge => { |
|
32
|
|
|
|
|
|
|
schema => ['any*', of=>['str*', 'code*']], |
|
33
|
|
|
|
|
|
|
}, |
|
34
|
|
|
|
|
|
|
munge_hashref => { |
|
35
|
|
|
|
|
|
|
schema => ['any*', of=>['str*', 'code*']], |
|
36
|
|
|
|
|
|
|
}, |
|
37
|
|
|
|
|
|
|
}, |
|
38
|
|
|
|
|
|
|
args_rels => { |
|
39
|
|
|
|
|
|
|
req_one => [qw/munge munge_hashref/], |
|
40
|
|
|
|
|
|
|
}, |
|
41
|
|
|
|
|
|
|
}; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
|
44
|
|
|
|
|
|
|
# ABSTRACT: Munge (add, remove, rename, reorder) columns of another tabledata |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |