in reply to DBD::CSV issues querying file

SQL ERROR: Bad table or column name 'vasample;' has chars not alphanumeric or underscore!

It probably doesn't like the semicolon in your SELECT statement's table name:

my $sql = "SELECT ... FROM $table;"; ^

(just a guess - haven't verified it...)