in reply to How to capture compile errors from child program?
If you don't care about capturing the text of the error, then you could do something like this:
where ... is replaced by whatever you want to do to handle the error.@z=`perl child.pl -option1 -option2`; if ($?) { ... }
|
|---|