I have a string, with newlines and odd characters in it, like quotes, commas, backslashes etc (it can be quite long, so not simple to escape characters).
Eg
STRING_FROM_BASH="blah2 => '/blah',"
perl -0777 -i.original -pe "s/###matchingchars/$STRING_FROM_BASH/igs" myfile
I get an error
Having no space between pattern and following word is deprecated at -e line 1
Which I assume is because its interpolating the bash string.
Is there any way to make Perl not interpolate that replacement string?