in reply to Re: once again: program output and return code
in thread once again: program output and return code

This worked for me but I had to duplicate STDIN as well as the other two, pass the dup to open3 and close it afterwards if I wanted to call the subroutine with the open3 call more than once, else:
Carp::croak('open3: close(main::STDIN) failed: Bad file number') cal +led at .../IPC/Open3.pm line 119 IPC::Open3::xclose('main::STDIN') called at .../IPC/Open3.pm line 23 +8 IPC::Open3::_open3('open3', 'main', '<&STDIN', 'GLOB(0xa8c04)', 'GLO +B(0xa8c88)', 'pmem 2914') called at .../IPC/Open3.pm line 249 IPC::Open3::open3('<&STDIN', 'GLOB(0xa8c04)', 'GLOB(0xa8c88)', 'pmem + 2914') called at ...

Replies are listed 'Best First'.
(IPC::Run) Re^3: once again: program output and return code
by particle (Vicar) on Apr 18, 2003 at 17:26 UTC

    you might find IPC::Run and IPC::Run3 of use. they make ipc much easier than the open* modules.

    ~Particle *accelerates*