in reply to Re^2: Managing an asynchronous neverending external program
in thread Managing an asynchronous neverending external program

Be aware that Perl on Windows has some rough edges and IPC and event-based programming tend to get into those edges the most!
  • Comment on Re^3: Managing an asynchronous neverending external program

Replies are listed 'Best First'.
Re^4: Managing an asynchronous neverending external program
by Porax (Acolyte) on Jul 10, 2014 at 07:08 UTC

    I saw your message just after I tried a simple example with any event and saw it wasn't working.

    I'll keep on trying different things. And see what seems to work the best.

    I'll share it later if (when !) I manage to do something that runs !

    Porax

      Usually, Cygwin Perl is the one that has less problems with IPC as the cygwin layer takes care of most of them.

      Also, the most common cause of the rough edges is that Perl built-ins are modeled after Unix, so, another option, is to rely as much as possible on the Win32 API. Unfortunately, the wrappers you may find on CPAN (Win32::*) don't always have the quality one would like. Your mileage may vary.