in reply to Re: DBI Hash of Column name values
in thread DBI Hash of Column name values

So $rows is a ref to an Array of Hashes ?

Replies are listed 'Best First'.
Re^3: DBI Hash of Column name values
by Anonymous Monk on Aug 09, 2010 at 20:05 UTC
      Thanks for all the wisdom ! I am not sure how efficient my final solution is, but I wanted an array of hashes. This works
      my %rec; $sth->bind_columns (\(@rec{@{$sth->{NAME_lc}}})); while ($sth->fetch) { my %res = %rec; push(@result, \%res); } return \@result;