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:

@z=`perl child.pl -option1 -option2`; if ($?) { ... }
where ... is replaced by whatever you want to do to handle the error.