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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy