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


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

Try this:
$path =~ s/\\/\\\\/g;
Raghu
  • Comment on Re: how to prefix\insert back slash to string (windows) path in perl