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 ...
>
> W
--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)
--- 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
p
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
ent: Tuesday, August 19, 2003 11:07 PM
Subject: RE: 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
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. \\
> --- 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 tri
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? T
> 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
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
11 matches
Mail list logo