develooper Front page | perl.beginners | Postings from March 2002

Re: Data::Dumper documentation ?

Thread Previous | Thread Next
From:
maasha
Date:
March 19, 2002 02:44
Subject:
Re: Data::Dumper documentation ?
Message ID:
20020319104450.GE934@image
heh - that was exactly half of what i was looking for - how to dump stuff! great :)

mayby you can help me out with the second part too? :

if i have a datastructure (a hash) dumped to a file using Data::Dumper,
how can i recreate the datastructure/hash in another program?

if i do something like this:

open SOURCE, source.file;
undef $/;
eval SOURCE;
die $@ if $@;
close IN;


then eval will turn the datastructure into a scalar? but i want it as a hash!

or how does it work ?

:o)

martin

ps, love the missile address line!

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About