Oh great monks,
I'm going round in circles on this one. Essentially I want to extract a row from a mysql database, using fetchrow_hashref, but keep the columns in the SAME ORDER as the sql statement. The returned hash seems to be in a completely random order.
I've tried:
my (%row_hash,$row_hash); tie %row_hash, "Tie::IxHash"; my $row_hash = \%row_hash; while ($row_hash = $sth->fetchrow_hashref) {...
->This still jumbles the order of the returned hash.
->This returns a 'Can't use an undefined value as a HASH reference' error
->The data is already jumbled and it is too late.
->Am incapable. DBI.c seems to order the rows fine...
Anymore suggestions would be greatfully received,
Cheers!
In reply to Ordering return from fetchrow_hashref by slayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |