use DBI qw(:sql_types); ... $sth->bind_param(1, $_, SQL_VARCHAR); # or whatever type it is