$command = 'C:/this/is/atest/'; $command =~ s!/!\\!g; # Swap '/' for '\' die $command; __END__ C:\this\is\atest\ at - line 3.
In reply to Re^3: replace / with \ using regular expressions?
by Anonymous Monk
in thread replace / with \ using regular expressions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |