Think about Loose Coupling | |
PerlMonks |
Re: why ^M are added while iam transfering file using binary in Net::FTPby gellyfish (Monsignor) |
on Sep 12, 2006 at 13:24 UTC ( [id://572526]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|