Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Problems with Net::FTP

by eye (Chaplain)
on Jan 06, 2009 at 07:18 UTC ( #734359=note: print w/replies, xml ) Need Help??


in reply to Problems with Net::FTP

The "binary" call generates an instruction to the remote host to disable line ending translation. You cannot alter the state of the "ftp connection" until you authenticate. Hence, you need to put the "binary" call after the login, but it should not be necessary to put it inside the loop.

Replies are listed 'Best First'.
Re^2: Problems with Net::FTP
by haps (Novice) on Jan 07, 2009 at 00:49 UTC
    You are quite correct that it not necessary to have it inside the loop. I actually figured this out myself after looking at the code again and realizing that the reason it would not work originally was because I was not connected and authenticated. So I now have the script turn on binary mode after loggin in.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734359]
help
Chatterbox?
choroba needs some CH3CH2OH
[GotToBTru]: 99% of all deaths take place within 24 hours of ingesting di-hydrogen monoxide

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2016-12-06 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.