I\'m using DBI to query a SQLite3 database. What I have works, but it doesn\'t return the columns in order. Example:
Query: select col1, col2, col3, col4 from
Here's what I do:
use Data::Dump qw(dump); # get column names in array my @column_names_array= $sth->{NAME}; # print out column names in pretty format print "Field names: \n"; dump(@column_names_array);