in reply to Net::FTP ascii translation

If I need to set '$ftp->ascii' what 'ARGS' are needed.

According to the docs none, ascii() has no arguments. You call $ftp->ascii() to set ASCII mode, and $ftp->binary() to set binary mode.

Since you're ftp'ing a .cgi file, I'm assuming you need ASCII mode, and you need to make the script executable after transfering it. Mabe something like $ftp->site("chmod 755 $remote_file").

I've hardly ever used Net::FTP, so I might be completely wrong.

Replies are listed 'Best First'.
Re^2: Net::FTP ascii translation
by wfsp (Abbot) on Jul 15, 2004 at 09:06 UTC
    Mine says:
    ascii([ARGS])
    I can see that ARGS are optional but even with $ftp->ascii() added to the script I get the same result.
        I had already ftped it with an ftp program and CHOMDed it. It ran as expected.
        After using the above script I got 'page cannot be displayed' ie it is not executed. I beleive the error is what you would expect if the 'ascii translation' has not been carried out properly.