http://www.perlmonks.org?node_id=850552


in reply to Re: Wrap around an interactive python script
in thread Wrap around an interactive python script

I've recently started using IPC::Open3::open3 for InterProcess Communication type purposes and haven't looked back. Makes it easy to interact with another application by just reading and writing to filehandles, very slick and more intuitive (at least for me, anyway).

But I'm still quite the amateur and may be missing some subtleties (or outright facts).

  • Comment on Re^2: Wrap around an interactive python script

Replies are listed 'Best First'.
Re^3: Wrap around an interactive python script
by ikegami (Pope) on Jul 21, 2010 at 14:58 UTC
    While open3 does a lot (incl propagating exec errors to the parent), it's still a low level module. It's doesn't help you read from the child's STDOUT and its STDERR without combining them, a situation prone to deadlocks. IPC::Run3 and IPC::Run are higher-level solutions.