I would use
dbmopen() or
tie(). Using these
you can bind the hash to a physical file. This made one of
my scripts twice as fast, because it was faster doing the IO calls
then having the memory fill up and start using swap space.
See: perlman:perltie.
- FrankG