in reply to Sizes of copied files are not right

The default file transfer type is ASCII. If the line endings are different on your two system (Unix vs Win for example) all occurrences of newline will be converted.

Your file types appear to be binary data - not text files. Stting the file transfer mode to bin will address this issue.


Be Appropriate && Follow Your Curiosity
  • Comment on Re: Sizes of copied files are not right

Replies are listed 'Best First'.
Re^2: Sizes of copied files are not right
by Anonymous Monk on Apr 21, 2011 at 18:05 UTC

    how do i set that?

      As roboticus stated, the command (given your example code) would be $ftp->binary; the Net::FTP manpage explains this.


      Be Appropriate && Follow Your Curiosity