in reply to Net::FTP trace uploaded data

I've read your question---it's still unclear to me; however, you can get the size of a file, whether a transfered file or whatever something like this. For example, I want to find out the size of Net::FTP:

print "file size ", -s '/usr/lib/perl5/5.8.8/Net/FTP.pm', " bytes\n";

Replies are listed 'Best First'.
Re^2: Net::FTP trace uploaded data
by ademmler (Novice) on Apr 15, 2008 at 06:54 UTC
    Hi Khen.
    Thanks for your hint, but I have ment something different. I need advice how to use the datacon class from Net::FTP to get the amount of transfereed data (while transfering). I have read the CPAN docu, but I have no glue what the aouther is telling me. Best would be a working sample - for me.
    Regards Ademmler

    #From the manual:
    read ( BUFFER, SIZE , TIMEOUT )
    Read SIZE bytes of data from the server and place it into BUFFER, also performing any <CRLF> translation necessary. TIMEOUT is optional, if not given, the timeout value from the command connection will be used. Returns the number of bytes read before any <CRLF> translation.
    write ( BUFFER, SIZE , TIMEOUT )
    Write SIZE bytes of data from BUFFER to the server, also performing any <CRLF> translation necessary. TIMEOUT is optional, if not given, the timeout value from the command connection will be used. Returns the number of bytes written before any <CRLF> translation.
    bytes_read ()
    Returns the number of bytes read so far.