in reply to Re: DBI hashref does not return data in order of query
in thread DBI hashref does not return data in order of query
Can't use an undefined value as an ARRAY referencemy @names = @{ $sth->{@fields} }; <------Didn't like this while ( my $row = $sth->fetchrow_arrayref ) { @ordered_values = @{$row}{@names}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI hashref does not return data in order of query
by Tux (Canon) on Oct 23, 2007 at 06:17 UTC |