in reply to Re: perl & UNC paths
in thread perl & UNC paths
use File::Spec; my $dir=File::Spec->catdir('//server','share','folder','subfolder');
Note that the \\ has been reversed from normal, this does work, we do this all the time with our scripts on Windows. Also, you can do the following:
chdir $dir or die "Cannot change to $dir. $!";
We do this quite frequently with our Windows Perl scripts. You cannot do this from the commandline (if I remember correctly).
|
|---|