in reply to Inter-Process Communication
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Inter-Process Communication
by Nitrox (Chaplain) on Jul 21, 2002 at 02:48 UTC |