in reply to Bad file descriptor' error with automated FTP script.

You might be able to get more information from Net::FTP.

Any messages, errors or other wise that are returned by the FTP Server can be retrieved by calling $ftp->message(). You might find that there is some error in there, such as permission denied that is causing your problem.

HTH.

Alistair

  • Comment on Re: Bad file descriptor' error with automated FTP script.

Replies are listed 'Best First'.
Re: Re: Bad file descriptor' error with automated FTP script.
by dave_the_m (Monsignor) on May 14, 2004 at 11:20 UTC
    Note also that $! will not contain any meaningful result unless the function you have just called explicitly claims to set it. Otherwise its just the value left over from the last failed system call your code happened to make, which may or may not be related to the error you're getting.