in reply to Re^2: replace / with \ using regular expressions?
in thread replace / with \ using regular expressions?
$command = 'C:/this/is/atest/'; $command =~ s!/!\\!g; # Swap '/' for '\' die $command; __END__ C:\this\is\atest\ at - line 3.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: replace / with \ using regular expressions?
by Anonymous Monk on Jun 20, 2009 at 08:08 UTC |