The return result of keys %{$ref} is ordered semi-randomly. At 5.8.1 the ordering is even more random. If you want to see your columns in a specific order then you have to either provide that order yourself or sort them.
In reply to Re: DBI returning mysql columns in strange order.
by diotalevi
in thread DBI returning mysql columns in strange order.
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |