in reply to Re^2: Another Windows Mapping Question
in thread Another Windows Mapping Question
#!/usr/bin/perl use strict; use warnings; use File::Copy qw( copy ); copy $ARGV[0], $ARGV[1];
It needs error checking.
If you need to hardcode a UNC path, you can either properly escape backslashes
my $path = '\\\\server\\share\\dir\\file';
or simply use forward slashes.
my $path = '//server/share/dir/file';
open has no problem with either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Another Windows Mapping Question
by drodinthe559 (Monk) on Sep 25, 2008 at 18:32 UTC | |
by ikegami (Patriarch) on Sep 25, 2008 at 21:38 UTC |