1Test::File::ShareDir::UUtsielrs(C3o)ntributed Perl DocumTeenstta:t:iFoinle::ShareDir::Utils(3)
2
3
4
6 Test::File::ShareDir::Utils - Simple utilities for File::ShareDir
7 testing
8
10 version 1.001002
11
13 use Test::File::ShareDir::Utils qw( extract_dashes );
14
15 my $hash = extract_dashes('dists', $oldhash );
16
18 extract_dashes
19 A utility that helps transform:
20
21 -opt_a => bar
22 -opt_b => baz
23 NameA => NameAValue
24 NameB => NameBValue
25
26 Into
27
28 opt_a => bar
29 opt_b => baz
30 modules => {
31 NameA => NameAValue
32 NameB => NameBValue
33 }
34
35 This is a useful approach used all over import and functional style
36 interfaces due to explicit configuration being needed only on rare
37 occasions.
38
40 Kent Fredric <kentnl@cpan.org>
41
43 This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.28.0 2017-03-01 Test::File::ShareDir::Utils(3)