Nalina has asked for the wisdom of the Perl Monks concerning the following question:

Can any one tell me how to do ftp file transfer with an acknowledgement from server.

I am trying to transfer a file from client to the server. I need an acknowledgement from server after transfering the file. I also need to get the size of the transfered file on the server.

Any sample script will be of great Help

Thanks in advance

Replies are listed 'Best First'.
Re: ftp file transfer with acknowledgement
by ikegami (Patriarch) on Dec 02, 2004 at 07:53 UTC
    FTP servers always acknowledge a successful file transfer by sending a response numbered in the 200s. Net::FTP's put returns an error code. I'm not sure if it's true/false, or if it's the errorcode from the server (in which case you'd have to look for defined($rv) && $rv >= 200 && $rv < 300).
Re: ftp file transfer with acknowledgement
by Anonymous Monk on Dec 02, 2004 at 10:23 UTC
    What have you tried?
      not yet tried anything.