I have a large C program into which I have added the ability to embed Perl code. Using G_EVAL, I have managed to catch any 'die' statements in the Perl code. However, when there is a syntax error, or a missing module, the entire program crashes.
Is it possible to catch this sort of error and handle it in C? perlembed / perlcall didn't have anything that seemed relevant.