in reply to ithreads weren't the way.. still searching
Why thread? speed? No!
Thread does not give you much in this case. On one hand, it does not give you speed, on the other hand, it sucks up resources.
Take a look at IO::Select.