At 10.21 1998.02.13, Alex Hooper wrote: >I have a script that reads in a text database containing a catalog of >items. I read it in and build a big hash of arrays where the $keys are >categories in the catalog, and the $value is a reference to an array of >arrays (one array per item in that category). I then take each category and >build html catalog pages from the data. > >My problem is I run out of memory. I wondered if I could use reset or undef >to free up memory as I go along (and categories that I've dealt with become >redundant). > >Can reset and undef free up memory? Not really, AFAIK. What you can do is use MLDBM wit DB_File to save multi-dimensional arrays to files, which will lose performance, but save memory. Actually, has anyone used MLDBM with MacPerl? -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) #== New Book: MacPerl: Power and Ease ==# #== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==# ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch