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\
In reply to Re: why ^M are added while iam transfering file using binary in Net::FTP
by gellyfish
in thread why ^M are added while iam transfering file using binary in Net::FTP
by shanthiann
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |