in reply to Re^2: Prevent my STDERR logging in evals...
in thread Prevent my STDERR logging in evals...
No, turning off warnings will not turn them off in called functions and won't mute explicit calls to warn.
Yes, redirecting STDERR is another option (although /dev doesn't exist on my system).
>perl -we"eval { local *STDERR; open(STDERR, '>', 'NUL'); print STDERR + qq{foo\n}; }" >
|
|---|