$query = qq| INSERT INTO foo VALUES ( ?, ? ) |; $sth = $dbh->prepare($query); $sth->execute($bar,$baz);