my $sql_fmt = "INSERT INTO whatever VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; while () { my @line = (parse_csv ($_)); $dbh->do($sql_fmt,undef,@line); }