> -----Original Message-----
> From: Rowan Reid [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 6:51 PM
> To: [EMAIL PROTECTED]
> Subject: Best way to save nested data structure.
> 
> 
> 
> 
> I'm learning as best I can using every book orielly makes.  I 
> am trying
> to saved a complex data structure (hash). I'm trying to use Berkly
> DBFile and tie. I am unable to store the file ie retrieve info once I
> have exited the program.  Once I tie a hash toe the  file access the
> contents should be the same as accessing the contents of the hash

I'm not sure I understand the exact problem. But you cannot store a nested
data structure directly into a DBM; you have to "serialize" the data first.
Use the MLDBM module for this; it takes care of all the details for you.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to