in reply to Re^2: Best practices for handling exceptions in die/eval style
in thread Best practices for handling exceptions in die/eval style
This doesn't work if something prints directly to STDERR, whether from perl or C or even a forked process, in which case the above mentioned redirection to devnull would be needed. However, that method is much more difficult to localize.