in reply to Perl AND SQL Help

but in my perl code it doesn't print the result in the order I am specifying on the code.

My vague attempt at an answer is: hashes in Perl aren't in a specific order, even if you feed an ordered list into a hash. So chose a different method,   fetchrow_arrayref   maybe.

Cheers, Sören

Replies are listed 'Best First'.
Re: Re: Perl AND SQL Help
by jZed (Prior) on May 24, 2004 at 16:06 UTC
    Umm, fetchrow_hashref() will return the columns in a row in a possibly non-predictable order, but what the OP is asking about is not the order of the columns in a row, but rather the order of the rows in the table.