in reply to Interpolation between single quotes?

You can use the " ' " form of a here-doc quote to avoid backslash interpretation:

print <<'EOS'; Test string \\ \' EOS