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

Thanks a lot zentara !

I just started having a look at AnyEvent and for what I have read so far it really seems to reach my needs !

Porax

  • Comment on Re^2: Managing an asynchronous neverending external program

Replies are listed 'Best First'.
Re^3: Managing an asynchronous neverending external program
by salva (Canon) on Jul 09, 2014 at 12:53 UTC
    Be aware that Perl on Windows has some rough edges and IPC and event-based programming tend to get into those edges the most!

      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.