> -----Original Message----- > From: Bill Luebkert [mailto:dbec...@roadrunner.com] > Sent: 27 September 2010 03:01 > To: Eric Robertson > Cc: activeperl@listserv.ActiveState.com > 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 ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs