line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
12949
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
63
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Data::Scan::Printer; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Example of a printer consumer for Data::Scan |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.007'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
4
|
use Exporter qw/import/; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
30
|
|
13
|
1
|
|
|
1
|
|
3
|
use vars qw/@EXPORT %Option/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
14
|
1
|
|
|
1
|
|
367
|
use Data::Scan::Impl::Printer; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
15
|
1
|
|
|
1
|
|
5
|
use Moo; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
extends 'Data::Scan'; |
17
|
|
|
|
|
|
|
# |
18
|
|
|
|
|
|
|
# Using this module intentionaly means caller is ok to pollute its namespace |
19
|
|
|
|
|
|
|
# |
20
|
|
|
|
|
|
|
@EXPORT = qw/dspp/; |
21
|
|
|
|
|
|
|
# |
22
|
|
|
|
|
|
|
# User is advised to localized that |
23
|
|
|
|
|
|
|
# |
24
|
|
|
|
|
|
|
%Option = (); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub dspp { |
28
|
1
|
|
|
1
|
1
|
2324
|
__PACKAGE__->new(consumer => Data::Scan::Impl::Printer->new(%Option))->process(@_) |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |