- or download this
$foo = <<'__HERE__';
\\some.address.or.whatever\subdir\
__HERE__
chomp $foo;
print ">", $foo ,"<"; # >\\some.address.or.whatever\subdir
+\<
- or download this
sub s2b { # slash to backslash
(my $str = shift) =~ tr#/#\\#;
...
}
my $path = s2b '//some.address.or.whatever/subdir/';
- or download this
use Data::Dump;
...
__HERE__
dd \%path;
- or download this
{
deinstall => "\\\\other.address.or.whatever\\subdir\\",
install => "\\\\some.address.or.whatever\\subdir\\",
}