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

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.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Why ^M are added while I am transfering file using binary in Net::FTP