in reply to copying a file

Is there a reason you are trying to do this with FTP? You are using File::Copy, so why not just use copy( $dir.$file, $dir."Temp/".$file )? (You would have to change $dir to be relative to your root then, something like "/home/doytest/cgi-bin/Data" or however you have your system set up.

If you are intent on doing it with FTP, then we'll have to figure something else out.

-Bryan

Replies are listed 'Best First'.
Re^2: copying a file
by Doyle (Acolyte) on May 20, 2005 at 12:43 UTC
    Correction was made on the path and thanks for pointing that out. The file I want to copy is on an ftp server(/doytest/cgi-bin/00000001.txt) and I would like to copy this file to my pc(C:/Temp). This is want I am trying to do. If there is any other way, I am all ears.