Dan Muey wrote:
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
Hello,
Thanks for all your inputs now below you mentioned
copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file))
sorry for my ignorance but what is qq
also if I want to be smart and copy it to the c: drive
of some user - assuming I am running the script from a
Domain Admin login
eg.
: the File::Copy module
Hello,
Thanks for all your inputs now below you mentioned
copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file))
sorry for my ignorance but what is qq
also if I want to be smart and copy it to the c: drive
of some user - assuming I am running the script from
On Wednesday, August 20, 2003, at 01:45 AM, Trina Espinoza wrote:
I only know the first part. qq is double quotes. As opposed to the qw
which
is single quotes.
Close. qq() is double quotes, you got that right. q() is single
quotes. qw() is the Quote Words operator. It turns this:
qw(some
--- Saadat Saeed [EMAIL PROTECTED] wrote:
Hello,
Thanks for all your inputs now below you mentioned
copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file))
sorry for my ignorance but what is qq
In perl, there are many things to do things right. That is the beauty of
perl,
--On Wednesday, August 20, 2003 8:01 AM -0700 Jeff Westman
[EMAIL PROTECTED] wrote:
As for qhat 'qq' does, it behaves like double quotes. As you pointed
out, it CAN make your code harder to read (!) sincemany people are not
accustomed to it. For me, '' is more customary (with C/C++ or shell),
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
Try:
use strict;
use warnings;
...
my $returnValue =
copy(machine1\\share\\file1,machine2\\share\\file2);
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
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
--- 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
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:
--- 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
Hi everyone
I've got a bit of a problem. I'm stuck with ActiveState Perl version 5.005
build 522 because of lack of support for current versions by a *really*
important piece of software I use.
I'm trying to install the appropriate File::copy module (for build 522)
from ActiveStates respository
13 matches
Mail list logo