Do you have any other suggestion on what I'm am trying to do.
Without you showing us what you are doing inside your worker() sub, it's pretty hard to suggest a better way of doing it.
In general, it would be better to catch exceptions inside the sub rather than just blindly restarting it from scratch. The likelyhood is that you'll just keep retrying the same thing over and over, and never get anything done.
In reply to Re^5: Eval thread and restart it.
by BrowserUk
in thread Eval thread and restart it.
by mr_p
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |