Have you looked at DBM::Deep?
In reply to Re: tying a hash from a big dictionary by tokpela in thread tying a hash from a big dictionary by Anonymous Monk