|Perl: the Markov chain saw|
Perl Net::FTP put() gives little help on errorsby amitsk (Initiate)
|on Jan 07, 2010 at 08:02 UTC||Need Help??|
amitsk has asked for the
wisdom of the Perl Monks concerning the following question:
I have a simple scenario. I upload a zip file on a disk to some server.
The put() succeeds 9 out of 10 times, but for the 10th time (and this is very random), it throws up.
This, I know is because of: 1. Server closing connection, or 2. Internet link break 3. Unknown
My question is what *really* tells me that put() has failed?
a. I have tried $ftp->message but this is empty.
So what gives?
By the way, when I try this on a DOS prompt and stop the ftp server, this is what I get.
Notice the last 3 lines, I know exactly what went wrong.