Because line endings are different on Unix (and Linux) and DOS (and Windows). And they don't get translated in binary transfer mode.
See my article Why Does My File Have Funny Characters In It? for more details.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Why ^M are added while I am transfering file using binary in Net::FTP
by davorg
in thread why ^M are added while iam transfering file using binary in Net::FTP
by shanthiann
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |