in reply to How to remove double quotes?

Your description is a bit vague. I assume that you have a perl variable that happens to have double quote characters inside it, though why that would be needed in XML is a bit beyond me (XML is its own delimiter, and shouldn't need extra ones).

Removing double quotes from around a Perl string is pretty easy:

$string =~ s/^"(.*)"$/$1/; # or (faster if you always have quotes): $string = substr($string, 1, length($string)-2);
Though this doesn't answer the question about what to do with embedded quotes.

Anyway, you are sending this string to some other software somehow.

Here's where it gets difficult. There are several ways to send data to other programs:

The solution for each of these is likely to be different.

If you're using system() or qx(), you have to watch out for the quoting behavior of your local shell (which might view double quotes as special).

More info is needed...