in reply to hashes & threads

I hate recommending non-Perl solutions, but Perl really isn't good for this. For true threading in an environment that is familiar to Perl programmers, like to recommend looking at Qore.