You can do use select to poll the filehandle. Of course, you could simply use your socket instead of opening the pipe. --Dave.pipe B,A; my $child = fork; die "fork: $!" unless defined $child; if ($child != 0) { use IO::Handle; close B; print A "hello\n"; A->flush; sleep 1; print A "world\n"; exit; } close A; while (<B>) { print; }
In reply to Re: Inter-Process Communication
by dpuu
in thread Inter-Process Communication
by Nitrox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |