$sql = sprintf "SELECT foo FROM bar WHERE baz = %s", $dbh->quote("Don't"); #### $sql = "SELECT foo FROM bar WHERE baz = " . $dbh->quote("Don't");