line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
package Persistent::Hash::Dumper; |
3
|
|
|
|
|
|
|
|
4
|
9
|
|
|
9
|
|
53
|
use strict; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
386
|
|
5
|
9
|
|
|
9
|
|
48
|
use Carp; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
663
|
|
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
49
|
use base qw(Data::Dumper); |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
2631
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _dump |
11
|
|
|
|
|
|
|
{ |
12
|
0
|
|
|
0
|
|
|
my $s = shift; |
13
|
0
|
|
|
|
|
|
my ($val,$name) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my($sname); |
16
|
0
|
|
|
|
|
|
my($out, $realpack, $realtype, $type, $ipad, $id, $blesspad); |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
$type = ref $val; |
19
|
0
|
|
|
|
|
|
$out = ""; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
|
|
|
|
if ($type) |
23
|
|
|
|
|
|
|
{ |
24
|
|
|
|
|
|
|
# prep it, if it looks like an object\ |
25
|
|
|
|
|
|
|
#XXX Modified here. |
26
|
0
|
0
|
|
|
|
|
if ($type !~ /^[A-Z]*$/) |
27
|
|
|
|
|
|
|
{ |
28
|
0
|
|
|
|
|
|
my $freezer = $s->{freezer}; |
29
|
0
|
0
|
0
|
|
|
|
if ($freezer && UNIVERSAL::can($val, $freezer)) |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
|
|
|
my $ret = $val->$freezer(); |
32
|
0
|
|
|
|
|
|
return $ret; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
return $s->SUPER::_dump(@_); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
666; |