Re: newbie: foreach (oops)



Kev P. wrote:
I'm sure the below can be simplified with some sort of "foreach", but
so far I've failed.  Anyone help please?

I sent a reply here which was wrong. It is now deleted, but maybe someone still gets to see it?


In that case: what was wrong with it is that I somehow forgot that stdin is blocked per default, so that the loop is *not* a busy loop. I was solving a non-existent problem.

Sorry :(
Miguel
.