Ah. So the read() simply blocks until there actually is something to read and then continues.
Which indicates you can either remove the if-condition completely (since it does nothing) -or- replace it with something that acts on the return value (in case there is an actual i/o error).
In reply to Re^7: Measuring the sound level (dB(A)) with PERL
by Monk::Thomas
in thread Measuring the sound level (dB(A)) with PERL
by John-Robie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |