Thanks for the feedback; I managed to figure out what I was doing wrong.
Stupid mistake really!!

Regs
Rupert Heesom
Asst Distribution Engineer
Adventist World Radio


-----Original Message-----
From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 21:38
To: [EMAIL PROTECTED]
Subject: Re: Syntax error in Win32:CopyFile()


on Thu, 11 Jul 2002 19:47:35 GMT, Rupert Heesom wrote:

> I'm stuck again!
>
>  "C:\Perl\TIFFPDF>perl -d tiffpdf.pl
> usage: Win32::CopyFile($from, $to, $overwrite) at tiffpdf.pl line 39,
> <CFG> line 6."
>
> The code line is:  Win32::CopyFile $CurrTIFFDir."\\".$_.".tif",
> $WorkDir."\\ImageMagick";

If it wants three parameters, give it three. Either

Win32::CopyFile($from, $to, 1); # if you want to overwrite an existing
$to Win32::CopyFile($from, $to, 0); # if you don't want to overwrite an
                                # existing $to

will work, depending on your need.

--
felix



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

Reply via email to