in reply to Re^4: Eval thread and restart it.
in thread Eval thread and restart it.
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.
|
|---|