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::Sel­ectablePip­e 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        


In reply to Re^3: Win32 Perl: inheriting redirected STDIN and STDOUT in a child process (select) by tye
in thread Win32 Perl: inheriting redirected STDIN and STDOUT in a child process by TGI

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.