Corrupted Download with Net::FTP (perl)

Hello,

I am trying to download several files from a remote FTP server using Net::FTP from within a perl script. The files download alright, except they appear to be corrupted. I know this because once after downloading, I use bzcat to pipe the files to a split command, and bzcat complains saying that: "bzcat: Data integrity error when decompressing".

Has anyone ever encountered this problem before and could suggest a possible solution? If I manually grab the files off the FTP it's fine. Even if I only run the FTP portion of the script, the files are still corrupt.

Any help is appreciated,

Thanks.

Did you select "binary mode" for the transfer (instead of ascii)?

make sure you set the mode to binary

that was it! THANK YOU SOOOOOOO MUCH!!!!!