in reply to Hash Pipe Problem

I think that you will find IO::Select helpful.

Caution: Contents may have been coded under pressure.