tqisjim has asked for the wisdom of the Perl Monks concerning the following question:
Here is some output from Data::Dumper:
$VAR1 = { 'shared' => \'true', 'parents' => [ { 'isRoot' => $VAR1->{'shared'} } ] };
Naturally, this looks like executable perl code. But it doesn't work. Upon evaluation:
$VAR1->{parents}->[0]->{isRoot} == undef
It's clear why the results are what they are. But I'm surprised that such a ubiquitous utility would have such a fundamental shortcoming. I'm trying to use this forum to publicize some of my recent distros. And this discovery is coupled with bugs due to my blind reliance on Data::Dumper.
I'm struggling to incorporate some elegant workaround, and counting on the probability that someone has effectively dealt with this problem already.
Any thoughts or meditations? -Thanks!
-Jim
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Unexpected Data::Dumper results
by choroba (Cardinal) on Apr 27, 2013 at 17:46 UTC | |
by tqisjim (Beadle) on Apr 27, 2013 at 18:04 UTC | |
Re: Unexpected Data::Dumper results
by hdb (Monsignor) on Apr 27, 2013 at 17:59 UTC | |
by tqisjim (Beadle) on Apr 27, 2013 at 18:02 UTC | |
by hdb (Monsignor) on Apr 27, 2013 at 18:06 UTC | |
Re: Unexpected Data::Dumper results
by DrHyde (Prior) on Apr 29, 2013 at 12:29 UTC |
Back to
Seekers of Perl Wisdom