RE: Restoring Dumped Values

"Eric Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <9A607573E445412F94016BB3397DF41B@macbookXP>
> -----Original Message-----
> From: Bill Luebkert [mailto:[email protected]]
> Sent: 27 September 2010 03:01
> To: Eric Robertson
> Cc: [email protected]
> Subject: Re: Restoring Dumped Values
> 
> 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).
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.856 / Virus Database: 271.1.1/3160 - Release Date: 09/26/10
> 08:01:00

Bill

That's great - Storable works a treat with the kind of hash I have, so I'll
be using that as a link between the two parts of the programs I'm writing.

Eric


_______________________________________________
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.