in reply to DBI returning mysql columns in strange order.
to get your keys in alpha sorted order. If you want them in another order, you will have to create an array to define the order you want and do something like# get column names foreach $col (sort keys %{$ref}){
but then you might run into problems with getting the casing of your names correct.# get column names my @col_order = qw( Condition Cshift ); foreach $col (@col_order){
What you _really_ want to do is find out the order of your fields directly from the DB and ... I don't remember how to do that just now. :-( Check the docs and you'll find it I'm sure.
|
|---|