6 BEGIN { unshift @INC, qw( blib/lib blib/arch ) }
10 $Data::Dumper
::Sortkeys
= 1;
11 $Data::Dumper
::Indent
= 1;
13 my ($use_perlio, $dump_hash) = (@ARGV, 0, 0);
14 $dump_hash or $Data::Peek
::has_perlio
= $Data::Peek
::has_perlio
= $use_perlio;
17 foreach my $ref ("", "\\") {
20 '""', '"\xa8"', '"ab\x0a\x{20ac}"',
22 eval "\$var = $ref$in;";
25 my %hash = DDump
($var);
26 $dump = Dumper
(\
%hash);
31 $dump =~ s/\b0x[0-9a-f]+\b/0x****/g;
32 $dump =~ s/\bab(\\n|\\12|n)/ab\\n/g;
33 $dump =~ s/\b(REFCNT'?\s+=>?\s*) ('?)[0-9]{4,}\2/$1 $2-1$2/g;
34 print "$ref$in\n--\n$dump==\n";