in reply to DBI Hash of Column name values
I don't know, bind columns always have a bad smell about them. I prefer the slice alternative where your returned resultset is an array of hashes:
Now I can do this:my $rows = $dbh->selectall_arrayref( $sql, { Slice => {} } );
foreach my $row ( @$rows ) { print $row->{NAME}, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI Hash of Column name values
by Tux (Canon) on Aug 09, 2010 at 20:27 UTC | |
by derby (Abbot) on Aug 10, 2010 at 12:37 UTC | |
by Tux (Canon) on Aug 10, 2010 at 13:52 UTC | |
by avrono (Novice) on Aug 09, 2010 at 21:03 UTC | |
|
Re^2: DBI Hash of Column name values
by avrono (Novice) on Aug 09, 2010 at 19:59 UTC | |
by Anonymous Monk on Aug 09, 2010 at 20:05 UTC | |
by avrono (Novice) on Aug 09, 2010 at 20:30 UTC |