in reply to Re^10: Please suggest a non-forking way to do this (OS: windows)
in thread Please suggest a non-forking way to do this (OS: windows)

This slightly modified version using STDIN works fine, in a non-blocking manner for me on linux.

I just showed that your fcntl command doesn't work on Windows.

Is your error coming on a Windows platform? If thats so, nothing I can do, except encourage people to switch to a real operating system, instead of a game platform. :-)

Windows does have an equivalent to unix's file handles and select (events that can be tied to file handles and WaitForMultipleObjects), but Perl doesn't support them.

Replies are listed 'Best First'.
Re^12: Please suggest a non-forking way to do this (OS: windows)
by zentara (Cardinal) on Sep 30, 2008 at 16:23 UTC
    For the sake of the original poster, would you know the names of the Win32 modules that implements the select function, and/or anything that relates to reading pipes?

    I'm not really a human, but I play one on earth Remember How Lucky You Are