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.
In reply to Re: Net::FTP ascii translation
by Joost
in thread Net::FTP ascii translation
by wfsp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |