http://qs321.pair.com?node_id=856049

anu_1 has asked for the wisdom of the Perl Monks concerning the following question:

How to replace single backslash in windows path to double backslashes $path="c:\abc\xyz" == > "c:\\abc\\xyz" I tried ~s/\\/\\\\/g but it didn't work Thanks for help