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

as_ndr has asked for the wisdom of the Perl Monks concerning the following question:

I have a complex hash:
$db{worda}[0] = "stringa"; $db{worda}[1] = "stringb"; $db{worda}[2] = "stringc"; $db{wordb}[0] = "stringd"; $db{wordb}[1] = "stringe"; $db{wordc}[0] = "stringf"; $db{wordd}[0] = "stringg"; $db{worde}[1] = "stringh"; $db{worde}[2] = "stringi"; $db{worde}[3] = "stringj";

but 500 times bigger. Is there a way to save it to a file and restore it later in only a few lines. The file doesn't have to be ledgible to the human eye. I just need a way to save and restore the data from the hash quickly and easily. Thanks!