in reply to How to store the data fetched from the database in perl
I'd use YAML for this. Look at the dumpfile and read file functions.