in reply to Re^2: Capturing errors from 3-arg pipe open in ActivePerl 5.020
in thread [SOLVED] Capturing errors from 3-arg pipe open in ActivePerl 5.020

If I'm understanding correctly, you're basically wanting to call another program from your Perl code and capture the STDOUT and STDERR of that program so that your code can determine if the program ran successfully or encountered errors. Is that correct?

If the description above is correct, then my approach would be to leverage Capture::Tiny instead of using the piped open construct.

  • Comment on Re^3: Capturing errors from 3-arg pipe open in ActivePerl 5.020

Replies are listed 'Best First'.
Re^4: Capturing errors from 3-arg pipe open in ActivePerl 5.020
by ateague (Monk) on Nov 16, 2015 at 20:03 UTC
    If I'm understanding correctly, you're basically wanting to call another program from your Perl code and capture the STDOUT and STDERR of that program so that your code can determine if the program ran successfully or encountered errors. Is that correct?

    No, not quite. I am wondering why the 3-arg pipe open example provided by Perldoc does not work as expected.

    (N.B. I have updated the OP to clarify this)