in reply to NET::FTP truncates files

I'm not sure if Net:FTP automatically checks, but maybe it's sending the file in ASCII/text mode instead of binary? To do this you would just send a $ftp->binary(); command. This sounds like the problem, since a text transfer will end when you get an EOF character - of which a PDF can't guarantee /won't/ show up before the end of the file.

andre germain
"Wherever you go, there you are."

Replies are listed 'Best First'.
Re: Re: NET::FTP truncates files
by Largos (Initiate) on Aug 09, 2001 at 02:15 UTC
    I have tried this
    $ftp->login('anonymous','submit@somesrvr.that.exists.edu'); $ftp->binary(); $ftp->put("$prefix"."$f2"); $ftp->quit;
    with the same result..

    Rogan Creswick ( didn't have an account earlier )