http://www.perlmonks.org?node_id=11134022


in reply to Re^2: Windows and backslashes and replacements oh my!
in thread Windows and backslashes and replacements oh my!

${bs}${bs} means using two consecutive backslashes, which is still weird.

Looks like somewhere a Unix tool like bash or another Perl is processing the file.

(Update: Obviously Perl needs to escape the backslash inside a regex)

FWIW: using $b2=chr(92)x2 might save you some typing

- Ron