line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# An Output Data Type Role for Perl 5 |
2
|
|
|
|
|
|
|
package Data::Object::Role::Output; |
3
|
|
|
|
|
|
|
|
4
|
217
|
|
|
217
|
|
192198
|
use 5.010; |
|
217
|
|
|
|
|
733
|
|
|
217
|
|
|
|
|
8094
|
|
5
|
217
|
|
|
217
|
|
1028
|
use Data::Object::Role; |
|
217
|
|
|
|
|
307
|
|
|
217
|
|
|
|
|
1311
|
|
6
|
|
|
|
|
|
|
|
7
|
217
|
|
|
217
|
|
61646
|
use Data::Object 'detract_deep'; |
|
217
|
|
|
|
|
440
|
|
|
217
|
|
|
|
|
57295
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.20'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub dump { |
12
|
10
|
|
|
10
|
0
|
7463
|
require Data::Dumper; |
13
|
|
|
|
|
|
|
|
14
|
10
|
|
|
|
|
51341
|
local $Data::Dumper::Indent = 0; |
15
|
10
|
|
|
|
|
24
|
local $Data::Dumper::Purity = 0; |
16
|
10
|
|
|
|
|
19
|
local $Data::Dumper::Quotekeys = 0; |
17
|
|
|
|
|
|
|
|
18
|
10
|
|
|
|
|
24
|
local $Data::Dumper::Deepcopy = 1; |
19
|
10
|
|
|
|
|
18
|
local $Data::Dumper::Deparse = 1; |
20
|
10
|
|
|
|
|
16
|
local $Data::Dumper::Sortkeys = 1; |
21
|
10
|
|
|
|
|
15
|
local $Data::Dumper::Terse = 1; |
22
|
10
|
|
|
|
|
28
|
local $Data::Dumper::Useqq = 1; |
23
|
|
|
|
|
|
|
|
24
|
10
|
|
|
|
|
85
|
my $result = Data::Dumper::Dumper(detract_deep(shift)); |
25
|
10
|
|
|
|
|
2964
|
$result =~ s/^"|"$//g; |
26
|
|
|
|
|
|
|
|
27
|
10
|
|
|
|
|
72
|
return $result; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub print { |
31
|
0
|
|
|
0
|
0
|
|
return CORE::print(&dump(shift)); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub say { |
35
|
0
|
|
|
0
|
0
|
|
return CORE::print(&dump(shift), "\n"); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |