Re: ftp return valueby andreychek (Parson)
|on May 16, 2002 at 02:44 UTC||Need Help??|
2. when all the files were ftp'd. i.e., at FTP->quit
The return value of $ftp->quit would actually tell you if the quit() call was successful or not, which isn't what I think you're worried about.
What you'd need to do is check the call of each put() method:
Or, if you don't actually want to die, you could also just set a flag if the put fails. Just like login(), put returns a true value if successful, false otherwise.
Hope that helps!
Update: Yeah, what derby said, he managed to type it in quicker then myself, and I like his eval trick :-)
Lucy: "What happens if you practice the piano for 20 years and then end up not being rich and famous?"
Schroeder: "The joy is in the playing."