in reply to transliteration of a string

You can also try using regular expression substitution:
my $slashes = '\\\\10.0.0.1\path\to\foo'; print "before: $slashes\n"; $slashes =~ s/\\/\//g; print "after.: $slashes\n";
Which yields...
before: \\10.0.0.1\path\to\foo after.: //10.0.0.1/path/to/foo