in reply to DBI : Get Column name and Value in hash

Yes, you can use 'fetchrow_hashref' instead of 'fetchrow_array' with some small changes in the code. Check the docs for DBI.
  • Comment on Re: DBI : Get Column name and Value in hash