in reply to hashes & threads

You could adapt the "kid" subroutine in the code from this node to do your bidding. (Uses Thread::Queue).

        "Software interprets lawyers as damage, and routes around them" - Larry Wall