Perl Substitution

Posted by Marlin on Stack Overflow See other posts from Stack Overflow or by Marlin
Published on 2010-05-04T08:47:08Z Indexed on 2010/05/04 8:48 UTC
Read the original article Hit count: 172

Filed under:

hi,

I have a variable which stores the path on Windows. I want to replace all the \ with / in the path.

for eg. $path = C:\Users\scripts.ps1

Am new to Perl and tried something like

$path = s/\////

But it didnt work. can you please help me out....

© Stack Overflow or respective owner

Related posts about perl