in reply to How to deal with a mass HoA

It may be worth having a look at a disk based hash like DBM::Deep.

Writeup Formatting Tips is also worth a look. :-)