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


in reply to Non-blocking pipe write

Look into the select RBITS, WBITS, EBITS in perlfunc, and/or IO::Select. caveat: select doesn't work on pipes in Windows.