hi, i have following code to search single "\" and replace it with "\\" but it is not doing as expected:
$csproj_text = "C:\build.txt"; $csproj_text =~ s/\\/\\\\/g; print "$csproj_text\n"; the output is : "Cuild.txt" instead the output should be : "C:\\build.txt" can someone please suggest, what is the wrong ? regards irfan