Hi. I'm a long-time Unix programmer reluctantly going to the PC. In an effort to drag along my environment, I'm trying to get Perl working under XP. I've got a "hello world" working okay, but now I'm trying to copy a file:
use File::Copy;
copy ( "C:\Documents and Settings\Owner\My Documents\SpectraSonics\Scripts_n_Tools\junk1.txt" ,
"C:\Documents and Settings\Owner\My Documents\SpectraSonics\Scripts_n_Tools\junk2.txt" )
or die "copy failed $!";
The error I get when running this is:
copy failed No such file or directory at junk.txt line 2.
The source file does exist. Doesnt Perl on the PC handle back slashes?
And I also tried using system ("cp source dest") and that failed also.
Any help would be appreciated
neal
use File::Copy;
copy ( "C:\Documents and Settings\Owner\My Documents\SpectraSonics\Scripts_n_Tools\junk1.txt" ,
"C:\Documents and Settings\Owner\My Documents\SpectraSonics\Scripts_n_Tools\junk2.txt" )
or die "copy failed $!";
The error I get when running this is:
copy failed No such file or directory at junk.txt line 2.
The source file does exist. Doesnt Perl on the PC handle back slashes?
And I also tried using system ("cp source dest") and that failed also.
Any help would be appreciated
neal