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}; }" >
In reply to Re^3: Prevent my STDERR logging in evals...
by ikegami
in thread Prevent my STDERR logging in evals...
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |