in reply to Re: Prevent my STDERR logging in evals...
in thread Prevent my STDERR logging in evals...

$^S is an easier way to check if you're in an eval.