in reply to how to prefix\insert back slash to string (windows) path in perl

Reg. your question, this will work

perl -le '$path=q{c:\abs\cbz};$path=~s/\\/\\\\/g;print $path' c:\\abs\\cbz
  • Comment on Re: how to prefix\insert back slash to string (windows) path in perl
  • Download Code