in reply to How the perl converts LF into CRLF

How are you sending it? If you use Net::FTP in ascii mode, the translastion will be done auto-magically.

-derby

Replies are listed 'Best First'.
Re^2: How the perl converts LF into CRLF
by perladdict (Chaplain) on Jun 23, 2006 at 16:49 UTC
    Hi Derby, thanks for suggetion,i am using Net::cmd in my script,in which i included senddata(DATA) method.

      Hmmm ... never used Net::Cmd directly. For Net::FTP the translation is not done in the client but on the server side. What type of server are you connecting to? FTP? Home grown?

      -derby

      Update: That is for all ftp ... not just Net::FTP, the translation is done in the server.