http://qs1969.pair.com?node_id=183727


in reply to Inter-Process Communication

I'm not sure about the specifics of your Win32 installation. Under cygwin, fork and pipe are implemented, so the following code works:
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; }
You can do use select to poll the filehandle. Of course, you could simply use your socket instead of opening the pipe. --Dave.