Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Unexpected Data::Dumper results

by hdb (Prior)
on Apr 27, 2013 at 17:59 UTC ( #1030991=note: print w/replies, xml ) Need Help??

in reply to Unexpected Data::Dumper results

Probably not what you would call elegant but if you execute it twice, it works... at least in this case. Just like LaTeX...

$VAR1 = { 'shared' => \'true', 'parents' => [ { 'isRoot' => $VAR1->{'shared'} } ] } for (1..2); print $VAR1->{parents}->[0]->{isRoot},"\n";

Replies are listed 'Best First'.
Re^2: Unexpected Data::Dumper results
by tqisjim (Beadle) on Apr 27, 2013 at 18:02 UTC
    Executing twice seems like the obvious solution... but there's some loss of data integrity.

      ...and, as with LaTeX, there might be situations where two runs are not enough...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030991]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2016-10-28 10:32 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (380 votes). Check out past polls.