in reply to Storing data into hashes

It would help if you give us information on your OS, Database, and perl.

The starting point of your research with perl and database access is DBI.

             "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius