> Try:
>
> use strict;
> use warnings;
> ...
> my $returnValue =
> "copy("\\\\machine1\\share\\file1","\\\\machine2\\share\\file2");
^ I think that quote will cause problems.
Have you tried single quotes also? That way you don't have to worry about
properly escaping the \.
copy('\\machine1\share\file1','\\machine2\share\file2') or die "Copy failed
$!";
Just a thought
Dmuey
>
> unless ($returnValue) warn "Copy failed: $!";
>
>
> (not tested)
>
>
> -JW
>
>
> --- Saadat Saeed <[EMAIL PROTECTED]> wrote:
> > I was just reading the File::Copy module. Now on a
> > pure Win32 environment will this work
> >
> > copy("\\machine1\share\file1","\\machine2\share\file2");
> >
> > Or should I do something else???????
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]