in reply to why ^M are added while iam transfering file using binary in Net::FTP

No you have it the wrong way round. When you do an FTP transfer in ASCII mode it alters the line endings as appropriate, when in binary mode it doesn't. The ^M you are seeing is part of the Windows line-ending that is not understodd by systems that have Unix line-endings. The Windows line-ending is two characters, whereas the Unix line-ending is one.

/J\

  • Comment on Re: why ^M are added while iam transfering file using binary in Net::FTP