in reply to Re^4: What is the preferred cross-platform IPC module?
in thread What is the preferred cross-platform IPC module?
Sorry, for trying to help.
My experiences of using IPC::Run on windows are dire. It is an over-engineered behemoth of a module that attempts to use *nix techniques to provide *nix capabilities on Windows, and fails dismally.
The point about winopen2 is that it provides you with a pair of selectable handles connected to the child process' STDIN & STDOUT.
As such, it is 'compatibile' with *nix-style code written using IPC::Open2 and select.
Ie. you'd only need do something like:
my( $in, $out ); if( $^O eq 'MSWin32' ) { ($in, $out ) = winopen2( $theCommand ); } else { open2( $in, $out, $theCommand ); } ... select .....
But, its not in a module so ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: What is the preferred cross-platform IPC module?
by Theory (Beadle) on May 15, 2012 at 19:56 UTC |