in reply to Re^2: Win32 Perl: inheriting redirected STDIN and STDOUT in a child process
in thread Win32 Perl: inheriting redirected STDIN and STDOUT in a child process
I was surprised to see Corion suggest named pipes since I don't believe that 4-arg select works on named pipes in Win32.
Yes, I'd try something like Win32::Socketpair (your capital "P" makes your link go astray). If the module doesn't work, there really isn't all that much code there so I'd be a bit surprised if the module itself has problems on Perl 5.8.6 but I'd be really surprised if it was difficult to fix the module or even roll your own replacement (all you need to do is create quite ordinary TCP sockets). If one runs into problems, one can also look at the code for Win32::SelectablePipe that still sits on my scratchpad that I was trying to get turned into a module very similar to Win32::Socketpair (except that it would know how to override pipe so that it could fix already-written code to make it work on Win32).
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32 Perl: inheriting redirected STDIN and STDOUT in a child process (select)
by TGI (Parson) on Oct 23, 2008 at 16:32 UTC | |
by BrowserUk (Patriarch) on Oct 23, 2008 at 17:36 UTC |