in reply to transliteration of a string

You can also use the hex code for the characters in question, sometimes useful (and less noisy) than escaping everything (or use alternate delimiters as ikegami suggested). Also useful is you want to use some characters that may not be easily entered, such as converting between the Euro currency symbol and the US dollar symbol:
while(<DATA>) { chomp; print "$_\t"; tr /\x5c/\x2f/; print "$_\n"; } __DATA__ \\10.0.0.1\path\to\foo