In PHP there is a simple function, mysql_real_escape_string(), that takes whatever string you throw at it and escapes it for mysql.
Is there a perl function that will do the same? I know that $db->quote() exists, but it adds quotes around the string as well, which is not desired.