in reply to Weird DBI behaviour

They both look correct and equivalent (though the second code is a bit more readable).

How do you know they aren't sorted correctly? It looks to me that the "some_other_number" columns might not contain what you think it does. Try printing out the value of "some_other_number" column too.

Replies are listed 'Best First'.
Re^2: Weird DBI behaviour
by toadi (Chaplain) on Aug 19, 2005 at 12:18 UTC

    Well I'm actually sure it comes out the right way. If i do the query on the mysql database it comes out in the right order. But perl doesn't print them in the right order in the first example.



    --
    My opinions may have changed,
    but not the fact that I am right