my $sth = $dbh->prepare(" INSERT INTO Table ( foo, bar ) VALUES ( ?, ? ) "); $sth->execute($foo, $bar);