in reply to how to store multivalues hashes to database

If you merely want to *store* data on disk, rather than use a database, you could simply use Data::Dumper to dump a data structure to a file. Then, you want to build a 'hash of arrays' to store multiple key values, like this:
use Data::Dumper; my %HoA = (); # crude code to illustrate: $HoA{'key1'} = ['1', '2', '3']; $HoA{'key2'} = ['a', 'b']; # etc. # Dump it open($OUTFILE, '>', 'data.dmp'); $Data::Dumper::Indent = 3; $Data::Dumper::Purity = 1; printf $OUTFILE Dumper(\%HoA); close($OUTFILE);
Then, later you can read it back in, and eval it to access the data.