line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
4740
|
use 5.10.1; |
|
7
|
|
|
|
|
22
|
|
2
|
7
|
|
|
7
|
|
36
|
use strict; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
174
|
|
3
|
7
|
|
|
7
|
|
35
|
use warnings; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
369
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Stenciller::Utils; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.1400'; # VERSION: |
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
39
|
use Moose::Role; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
58
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub eval_to_hashref { |
12
|
11
|
|
|
11
|
0
|
21
|
my $self = shift; |
13
|
11
|
|
|
|
|
18
|
my $possible_hash = shift; # Str |
14
|
11
|
|
|
|
|
21
|
my $faulty_file = shift; # Path|Str |
15
|
|
|
|
|
|
|
|
16
|
11
|
|
|
|
|
646
|
my $settings = eval $possible_hash; |
17
|
11
|
50
|
|
|
|
46
|
die sprintf "Can't parse stencil start: <%s> in %s: %s", $possible_hash, $faulty_file, $@ if $@; |
18
|
11
|
|
|
|
|
35
|
return $settings; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=pod |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding UTF-8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Stenciller::Utils |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Version 0.1400, released 2016-02-03. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SOURCE |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
L<https://github.com/Csson/p5-Stenciller> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 HOMEPAGE |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
L<https://metacpan.org/release/Stenciller> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Erik Carlsson <info@code301.com> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This software is copyright (c) 2016 by Erik Carlsson. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
54
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |