my $quote_string = "The movie \"A Beautiful Mind\" might win an Academy Award"; $sql_string =~ s/"/'/g; # Whatever SQL functions would follow...