$SQL_STATEMENT = qq!SELECT * FROM FOO WHERE THIS = ?!; $sth = $dbh->prepare($SQL_STATEMENT); $sth->execute($value_for_this);