If i start this program it reads from a PIPE. But it waits so long till the program reads from a PIPE and THEN goes again trough the Loop. But i want that: Go trough loop , read from pipe , sleep 1 second and then start the loop again. I hope you can help me , sorry for my bad english.$|=1; my $recv = 0; while(1) { $recv++; if($recv > 200) { print "<!-- //--> "; undef $recv; } open(FIFO,"<fifo"); my @read = <FIFO>; close(FIFO); foreach(@read) { ............ } sleep 1; }
In reply to Fifos + Pipes by Sascha2481
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |