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.
In reply to Re^3: Capturing errors from 3-arg pipe open in ActivePerl 5.020
by dasgar
in thread [SOLVED] Capturing errors from 3-arg pipe open in ActivePerl 5.020
by ateague
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |