in reply to Re: replacing backward slash with forward slash
in thread replacing backward slash with forward slash
Actually you don't need the backslash escape for the slash if you use a different character for the delimiter.
use strict; use warnings; my $test = 'C:\first\second'; print $test, "\n"; $test =~ tr,\\,/,; #$test =~ tr [\\] [/]; #$test =~ tr <\\> </>; #$test =~ tr .\\./.; print $test, "\n";
|
|---|