in reply to Loading an external hash

Take a look at Storable and see if it fits your requirements. Take a look at a similar question which was asked recently.

Update: Added reference to Is there a module to save and restore all package variables

Hope this helps

Martin