The node you replied to is the answer to your question.
DBM::Deep is exactly the way to have a hash use disk instead of RAM.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?