spacepille has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
eval_pv( "unknown_print 123;", FALSE );
prints the error message directly to STDERR.
injecting "$SIG{'__DIE__'} = 'MY::die_handler';" did not work for this case.
Is there any possibility to catch this error? Thank you.
i want catch compiler errors from an embedded perl interpreter.
For example:eval_pv( "unknown_print 123;", FALSE );
prints the error message directly to STDERR.
injecting "$SIG{'__DIE__'} = 'MY::die_handler';" did not work for this case.
Is there any possibility to catch this error? Thank you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: catch errors within C
by tilly (Archbishop) on Nov 15, 2007 at 06:00 UTC | |
Re: catch errors within C
by diotalevi (Canon) on Nov 15, 2007 at 04:23 UTC | |
Re: catch errors within C
by spacepille (Acolyte) on Nov 15, 2007 at 17:59 UTC |
Back to
Seekers of Perl Wisdom