Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Unexpected Data::Dumper results

by hdb (Monsignor)
on Apr 27, 2013 at 17:59 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2025-06-18 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.