in reply to How to debug perl code that uses threads
As BrowserUK says, the best solution is one of good design. I too would love to see tutorials or meditations on the subject.