Re: Restoring Dumped Values

Bill Luebkert <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
On 9/26/2010 3:12 PM, Eric Robertson wrote:
> I’ve produced a complicated hash that has as its values anonymous hashes and I want to store the hash in a text file and then in another program use this text file to reconstitute the original hash. Using Data::Dumper I’ve succeeded with the first part and produced the text file with ‘print OUT Dumper (%hash)’ but using eval with the contents of the file doesn’t reproduce the original hash file.
>
> Am I attempting the impossible, or if not how should I set about reconstituting to the original hash?

Maybe try Storable (store retrieve / freeze thaw).
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.