my $opts = $dbh->selectcol_arrayref(<<""); SELECT DISTINCT market FROM table ORDER BY market ASC print qq{};