I've got 2 filehandles that run a process each. I need to work with both inputs in the same loop. What process returns output first is unknown but can be distinguished by $_ pattern matching.
Sample code doesn't work but sortof demonstrates what I need to do. Proc1 might be silent for 10mins while proc2 is creating output which I need to work on in the loop, or proc1 is creating output that I need to read while proc2 is not producing anything. If both procs are producing output I'd need to make sure I can separate it.