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

Re: [MacPerl] Saving a hash to disk



At 22.37 -0500 1998.11.05, Chris Seidel wrote:
>Have you thought of using the Perl DB_File module? A friend of mine
>described it to me in a letter:

DB_File is great, but its main problem is it does not do multidimensional
data structures.  i.e., $hash{key} = 'value' can be stored, but
$hash{key1}->{key2} = 'value' cannot.  You can use MLDBM (which also works
out of the box with MacPerl) to do multidimensional hashes with MacPerl.
Or, alternatively, you can use the old $hash{'key1', 'key2'} = 'value'
syntax, which emulates multidimensional arrays (a carryover from Perl 4).

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch