in reply to How to remove double quotes?
Removing double quotes from around a Perl string is pretty easy:
Though this doesn't answer the question about what to do with embedded quotes.$string =~ s/^"(.*)"$/$1/; # or (faster if you always have quotes): $string = substr($string, 1, length($string)-2);
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:
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...
|
|---|