|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: improve FTP scriptby Illuminatus (Curate) |
| on Jun 14, 2012 at 18:01 UTC ( [id://976269]=note: print w/replies, xml ) | Need Help?? |
|
Well, one thing that comes to mind is that you 'die' in a lot of places, but only unlink the lockfile on success. If you run into a transient problem and you want the script to continue running after it clears, you should probably replace die with a function that removes the lockfile then dies fnord
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||