http://www.perlmonks.org?node_id=714778


in reply to Re: working with 2 inputs
in thread working with 2 inputs

On Windows (that's what the OP seems to be using), select doesn't work for pipes.

See this previous thread: Non-blocking Reads from Pipe Filehandle