in reply to how to assign a hash to a file

Try DBM::Deep