http://qs321.pair.com?node_id=515431


in reply to Saving and restoring hash variable data

Also have a look at Data::Dumper. Easiest way I have found to dump and restore most data structures. Has the added convenience of being human readable (As long as you understand Perl syntax).