Re: Net::FTP help needed
- From: Al Moodie <nospam@xxxxxxxxxx>
- Date: Tue, 16 Jan 2007 17:07:44 -0500
On 16 Jan 2007 14:28:30 +1100, Peter Billam
<peter@xxxxxxxxxxxxxxxxxxxx> wrote:
According to "perldoc Net::FTP", binary is a method, just like
login, put and quit are. That should mean something like:
$ftp->login($username, $password)
or die "Couldn't authenticate, even with username and password.\n";
$ftp->binary()
or die "Can't switch to binary mode: $!\n";
$ftp->put($localfile)
or die "Can't send $localfile: $!\n";
Hope this helps, Regards, Peter
It's simple, it works. I guess I do not have a good understanding of
module use. Thank you.
Al Moodie
.
- References:
- Net::FTP help needed
- From: Al Moodie
- Re: Net::FTP help needed
- From: Peter Billam
- Net::FTP help needed
- Prev by Date: Re: Tips on module selection for shell and/or commandline 'subcommand' behavior
- Next by Date: Net::SFTP - setting binary mode on Windows
- Previous by thread: Re: Net::FTP help needed
- Next by thread: Tips on module selection for shell and/or commandline 'subcommand' behavior
- Index(es):
Relevant Pages
|
|