It is a simple bug in how File::Copy::Recursive uses File::Spec. Look at "sub pathmk" in Recursive.pm.
It does @parts = File::Spec->splitdir($path) and joins those parts back together one-at-at-time using File::Spec->catdir(). That process turns \\server\d\dir into \server\d\dir because splitdir returns ( '', '', 'server', 'd', 'dir' ) but File::Spec->catdir('','') returns '\\' (the string \) not '\\\\' (the string \\).
- tye
In reply to Re: File::Copy::Recursive dircopy side effect (File::Spec)
by tye
in thread File::Copy::Recursive dircopy side effect
by niewczyk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |