It wasn't Windows did the copy in this case, but it was the result of an
issue that almost all Win32 Perl users out there run into pretty
quickly, which is forgetting to escape backslashes in file paths when
using double-quotes.

Another module to look into is Win32::FileOp, which is very nice if you
want to provide feedback to the user as to how the file copy is going or
give them a quick file tree to choose a file from, etc.  It's
OS-specific though, of course.


Sort of OT: I wonder if anyone would be interested in starting up a
Win32 Perl FAQ, or does one already exist somewhere and I just don't
know it?



-----Original Message-----
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 11:36 AM
To: beginners@perl.org
Subject: Re: windows command help


Or better yet:

  use File::Copy::Recursive qw(dircopy);
  dircopy($source, $target);

Then you don't have to rely on how windows decides to do a copy, which 
appears to be the problem, plus it's 100% portable...




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to