line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Dumper::Concise::Aligned; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
21013
|
use 5.010000; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
51
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
52
|
|
5
|
1
|
|
|
1
|
|
11
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
43
|
|
6
|
1
|
|
|
1
|
|
6
|
use Scalar::Util qw/reftype/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
140
|
|
7
|
1
|
|
|
1
|
|
5379
|
use Text::Wrap qw/wrap/; |
|
1
|
|
|
|
|
2533
|
|
|
1
|
|
|
|
|
86
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.24'; |
10
|
|
|
|
|
|
|
our @ISA; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
require Exporter; |
13
|
|
|
|
|
|
|
require Data::Dumper; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
197
|
BEGIN { @ISA = qw/Exporter/ } |
16
|
|
|
|
|
|
|
our @EXPORT = qw/DumperA DumperObjectA/; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub DumperObjectA { |
19
|
1
|
|
|
1
|
0
|
10
|
my $dd = Data::Dumper->new( [] ); |
20
|
1
|
|
|
|
|
48
|
$dd->Terse(1)->Indent(0)->Useqq(1)->Deparse(1)->Quotekeys(0)->Sortkeys(1); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub DumperA { |
24
|
1
|
|
|
1
|
0
|
945
|
my $str_buf; |
25
|
1
|
|
|
|
|
4
|
my $prefix = ''; |
26
|
1
|
|
|
|
|
5
|
for my $o (@_) { |
27
|
2
|
100
|
|
|
|
13
|
if ( defined reftype $o) { |
28
|
1
|
|
|
|
|
5
|
$str_buf .= |
29
|
|
|
|
|
|
|
wrap( $prefix, $prefix, DumperObjectA->Values( [$o] )->Dump ) . "\n"; |
30
|
|
|
|
|
|
|
} else { |
31
|
1
|
|
|
|
|
4
|
$prefix = $o; |
32
|
1
|
50
|
|
|
|
8
|
$prefix .= ' ' unless $prefix =~ m/\s$/; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
1
|
|
|
|
|
1152
|
return $str_buf; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |