Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Recreating hash

by aitap (Deacon)
on Sep 12, 2012 at 16:07 UTC ( #993243=note: print w/replies, xml ) Need Help??


in reply to Recreating hash

Data::Dumper is used to create such dumps. For example,

use Data::Dumper; print Dumper \%myhash;
("\" is useful (especially in case of arrays), because it creates a refecence, so Dumper dumps the structure as a single object).

To get your structure back in the program, you can use do or eval. See Data::Dumper and eval for more info on restoring Dumper files.

Sorry if my advice was wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993243]
help
Chatterbox?
[LanX]: 1234567890 1234567890 1234567890
[LanX]: so inserting own whitespace helps, ie. a JS warning on submit could help preventing problems
[LanX]:  last hour of cb doesn't break

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-07-24 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.