in reply to Re^2: how to overcome Win32 path delimiter in s///?
in thread how to overcome Win32 path delimiter in s///?

The function quotemeta will acomplish the same thing if you use it on the value before it is interpolated by the regex.

If you are particularly worried about forward slashes then you can just use an alternate character to delimit the parts of the substitution.
e.g. single char s!!! or paired s()()