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