Jeff Westman wrote:

Try:

use strict;
use warnings;
...
my $returnValue = "copy("\\\\machine1\\share\\file1","\\\\machine2\\share\\file2");


you probably don't want that first quotation mark before copy.

unless ($returnValue) warn "Copy failed: $!";


you could do it in one step as:

copy("\\\\machine1\\share\\file1","\\\\machine2\\share\\file2") or warn "Copy failed: $!";

(not tested)


ditto =]

-JW






--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to