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

Re: Data::Dumper documentation ?

Thread Previous | Thread Next
March 19, 2002 02:44
Re: Data::Dumper documentation ?
Message ID:
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 ?



ps, love the missile address line!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About