$test = "C:\first\second";

print $test;
print"\n\n";
$test =~ s/\\/\//g;
print $test;