[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] storing a DBM file



On Mon, Aug 02, 1999 at 11:38:53AM -0700, Adam Price wrote:
> I am having trouble storing a DBM file.  What I am trying to do is 
> this:  I read
> in, line-by-line, a large database (15 fields, 15,000 records), keyed 
> by control
> numbers and split it into a hash (where each value is a 8-piece array).  I then
> modify the data in each of the eight fields of the array.  Finally I want to
> resave the modified hash for quick searches.
> 

As far as I know, the only DB module which supports references in hash
values is MLDBM -- ML for multi-level.  All other DB modules simply save
and restore the stringified value of the reference.

You should either use MLDBM, or store your values in a single string with
delimiters.

http://www.perl.com/CPAN/modules/by-module/MLDBM/

Ronald

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org