in reply to Thread::Pool::Simple || !

. But, it is not quiet reliable enough to put in a batch environment and ignore.

Hm. If it is "not reliable"; how does it break? And why haven't you wrapped that bit in an eval?

Come to that; why are you wrapping bits of the code in eval, why not just wrap all of it? Eg.

sub worker { my( ... ) = @_; eval { ... ... return 1 if <cond>; ... 1; } or threads->create( \&worker, @_ ); }

Just remember that when you want to quit the thread permanently, to drop out of the bottom of the eval block, or return a true value to avoid the restart.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.

The start of some sanity?