in reply to Perl ftp

Is it possible your file is ASCII and you are FTPing between operating systems with differing line endings? If so, FTP will convert between different kinds of line endings on the fly. From the Net::FTP docs:
The protocol also defines several standard translations which the file can undergo during transfer. These are ASCII, EBCDIC, binary, and byte. ASCII is the default type, and indicates that the sender of files will translate the ends of lines to a standard representation which the receiver will then translate back into their local representation.
This could cause you to lose or gain a couple of bytes, depending on the circumstances.

Cheers,

Brent

-- Yeah, I'm a Delt.

Replies are listed 'Best First'.
Re^2: Perl ftp
by Chon-Ji (Novice) on Jul 03, 2006 at 02:46 UTC
    thanks it worked!