in reply to Re^2: Perl ftp
in thread Perl ftp

From the Net::FTP docs:

binary

Transfer file in binary mode. No transformation will be done.

Hint: If both server and client machines use the same line ending for text files, then it will be faster to transfer all files in binary mode.

Just call it (once) before transferring any files. Something like:

$ftpobj->binary; $ftpobj->get( $inputfile, $outputfile ) or die $!;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.