in reply to Obtaining statistics for Net::FTP transfers

the $ftp->message; will contain some message. For example

#!/usr/bin/perl use Net::FTP; $ftp = Net::FTP->new("mysite.com", Debug => 0); $ftp->login("myusr",'mypwd'); print $ftp->message,"\n"; $ftp->cwd("/pub"); print $ftp->message,"\n"; $ftp->get("myfile.pdf"); print $ftp->message,"\n"; $ftp->quit;
gives an output like
User myusr logged in.

CWD command successful

Opening ASCII mode data connection for myfile.pdf (10816217 bytes)
Transfer complete
Here we gets the size in bytes.

Cheers !

--VC



There are three sides to any argument.....
your side, my side and the right side.

Replies are listed 'Best First'.
Re^2: Obtaining statistics for Net::FTP transfers
by qragamu (Initiate) on Sep 06, 2007 at 09:45 UTC
    Bizarre. I tried adding print $ftp->message,"\n"; after the ftp as you did above. It had no effect at all.