in reply to Net::FTP ascii translation
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 | |
by Joost (Canon) on Jul 15, 2004 at 09:10 UTC | |
by wfsp (Abbot) on Jul 15, 2004 at 10:22 UTC | |
by Joost (Canon) on Jul 15, 2004 at 14:40 UTC | |
by wfsp (Abbot) on Jul 15, 2004 at 14:59 UTC |