> --- Dan Muey <[EMAIL PROTECTED]> wrote:
> > > 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
> 
> That won't work if the write decides that "file1" should be a 
> variable instead.  Just a thought :-/

Ok, in the example file1 wasn't a variable but if you dod want to do
\\machine1\share\$file

 copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file)) or ...

Would that cover all the bases?

DMuey

> 
> > 
> > Dmuey
> > 
> 
> -JW
> 
> __________________________________
> 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]

Reply via email to