in reply to DBI fetchrow_hashref issue

Let me add two things to what everyone else has said.

The first is that References quick reference may help clear up some confusion about how to use references. The second is that using strict.pm would have caught the fact that you were using them incorrectly and have assisted in debugging.