LanX has asked for the wisdom of the Perl Monks concerning the following question:
I have to admit that most parts of Data::Dumper are rather unintuitive for me. Is there an option (or alternative modul) to display the stringified references alongside with the actual output?
So instead of
DB<1> use Data::Dumper DB<2> $hr={a=>{b=>{c=>1}}} DB<3> print Dumper $hr $VAR1 = { 'a' => { 'b' => { 'c' => 1 } } }; DB<4> print $hr,$hr->{a},$hr->{a}{b},$hr->{a}{b}{c} HASH(0x98a2930)HASH(0x97f5060)HASH(0x9809780)1
I'd like to get something like :
$VAR1 = { # HASH(0x98a2930) 'a' => { # HASH(0x97f5060) 'b' => { # HASH(0x9809780) 'c' => 1 } } };
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making Data::Dumper also displaying (stringified) Ref-ID's?
by toolic (Bishop) on Sep 26, 2009 at 14:27 UTC | |
by LanX (Saint) on Sep 26, 2009 at 15:01 UTC | |
by ikegami (Patriarch) on Sep 27, 2009 at 00:28 UTC | |
by LanX (Saint) on Sep 27, 2009 at 21:08 UTC | |
by ikegami (Patriarch) on Sep 27, 2009 at 21:48 UTC |