Well done, and I certainly do think you are correct in that Perl threading is rather... dangerous. I have written several wrapper programs (mostly java and c) to avoid Perl threading at all costs. The performance hit isn't so bad and in the long run I wasn't using up anything more than a lot of memory really.
I've played around with Perl threading a little and found plenty of bizarre problems that I could attribute to Perl, my code or anything else so I just have to assume it is all in the nature of Perl threads not being terribly safe.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.