Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Read the Dumper data back to a hash.

by CountZero (Bishop)
on Jun 21, 2010 at 07:18 UTC ( #845682=note: print w/ replies, xml ) Need Help??

in reply to Read the Dumper data back to a hash.

Has the age-old art of reading the documentation indeed finally been lost?

From the docs of Data::Dumper:

Given a list of scalars or reference variables, writes out their contents in perl syntax. The references can also be objects. The content of each variable is output in a single Perl statement. Handles self-referential structures correctly.

The return value can be evaled to get back an identical copy of the original reference structure.

And see also the example in the Synopsis.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Comment on Re: Read the Dumper data back to a hash.
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2015-11-25 15:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (679 votes), past polls