Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

(Re: x 10) Problem using Net::FTP

by jarich (Curate)
on May 10, 2004 at 05:06 UTC ( [id://351962]=note: print w/replies, xml ) Need Help??


in reply to Re: (Re: x 8) Problem using Net::FTP
in thread Problem using Net::FTP

Read the documentation. I'm sure it'll tell you what happens if it fails to upload the file. Perhaps it returns false if that happens?

Once you know what happens after failure, you should be able to cater for that.

I would presume that your $ftp->put($new) or die "$server: cannot put $new: " . $ftp->message; would be sufficient myself...

If you're seeing cases where $ftp->put($new) is not returning false and if that's what the documentation says it should and the file is not being successfully transferred then that's a different matter, and one I can't help you with.

If you are seeing cases like that then you should try to identify under what circumstances that's happening. If you can identify the circumstances, and repeat the problem, but not fix it, then that would make an excellent SOPW question.

All the best,

jarich

Replies are listed 'Best First'.
Re: (Re: x 10) Problem using Net::FTP
by cc (Beadle) on Jun 15, 2004 at 19:17 UTC
    thanks !

    greetings
    cc

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://351962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-24 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found