RE: Storing complex Data structures ?

2002-09-11 Thread NYIMI Jose (BMB)
beginners' Subject: RE: Storing complex Data structures ? No. You access the data through %COMPANY_DB. That's the whole point of tie(). The object $db is used only if you need to call additional methods of MLDBM on it. You really don't even need to save $db, because you can always get it via

Storing complex Data structures ?

2002-09-10 Thread Rowan Reid
What is the correct way to access and store complex data structures to a file. I.e. hashes with several references. The method I have been using is as follows tie (%COMPANY_DB,'MLDBM','studio3.db',O_RDWR|O_CREAT,0777,$DB_BTREE) || die $!; Also DB_File. I'm realizing from previous help that

Re: Storing complex Data structures ?

2002-09-10 Thread Paul Johnson
On Tue, Sep 10, 2002 at 11:17:33AM -0700, Rowan Reid wrote: What is the correct way to access and store complex data structures to a file. I.e. hashes with several references. This is Perl. There is no correct way. But you could take a look at Data::Dumper and Storable for other solutions.

RE: Storing complex Data structures ?

2002-09-10 Thread Bob Showalter
-Original Message- From: Rowan Reid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:18 PM To: 'Perl beginners' Subject: Storing complex Data structures ? What is the correct way to access and store complex data structures to a file. I.e. hashes with several

RE: Storing complex Data structures ?

2002-09-10 Thread Rowan Reid
No. You access the data through %COMPANY_DB. That's the whole point of tie(). The object $db is used only if you need to call additional methods of MLDBM on it. You really don't even need to save $db, because you can always get it via: tied(%COMPANY_DB) This is what I did