note
salva
You can use <c>select</c> (see [doc://perlfunc]) to check whether data is available from a file descriptor.
<p>Though, that could incur in a race condition, for instance, when the data is generated by another process running in parallel. So, you should probably set a safe waiting time (the last <c>select</c> argument).
11123769
11123769