The trick is to always have the pipe opened for writing so that you'll never get EOF when reading it.open(RW, "+<pipe") or die "unable to open pipe: $!\n"; open(FH, "<pipe") or die "open pipe: $!\n"; while (<FH>) { # process line }
In reply to Re: IPC via named pipes, losing some messages
by pc88mxer
in thread IPC via named pipes, losing some messages
by ftumsh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |