in reply to Storing data into hashes

rkrish:

If you're using DBI then it's pretty easy: the fetchrow_hashref will give you an anonymous hash of the column names with the data for a row. There's another method that can give you the entire resultset in a hash, but you have to make sure you give it a unique key or you may lose data.

...roboticus

When your only tool is a hammer, all problems look like your thumb.