line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
8
|
|
|
8
|
|
88900
|
|
|
8
|
|
|
|
|
18
|
|
|
8
|
|
|
|
|
59
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2019'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Moo; |
7
|
8
|
|
|
8
|
|
50
|
use Catmandu::Util::Path qw(as_path); |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
53
|
|
8
|
8
|
|
|
8
|
|
3210
|
use Catmandu::Util qw(as_utf8); |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
408
|
|
9
|
8
|
|
|
8
|
|
43
|
use namespace::clean; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
339
|
|
10
|
8
|
|
|
8
|
|
40
|
use Catmandu::Fix::Has; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
50
|
|
11
|
8
|
|
|
8
|
|
3078
|
|
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
47
|
|
12
|
|
|
|
|
|
|
with 'Catmandu::Fix::Builder'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my ($self) = @_; |
17
|
|
|
|
|
|
|
as_path($self->path)->updater(if_string => sub {uc(as_utf8($_[0]))}); |
18
|
13
|
|
|
13
|
|
105
|
} |
19
|
13
|
|
|
16
|
|
62
|
|
|
16
|
|
|
|
|
58
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Catmandu::Fix::upcase - uppercase the value of a field |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# Uppercase the value of 'foo'. E.g. foo => 'bar' |
32
|
|
|
|
|
|
|
upcase(foo) # foo => 'BAR' |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SEE ALSO |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
L<Catmandu::Fix> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |