http://www.perlmonks.org?node_id=889425

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to die silently (e.g. die "" or at least die " " or die "\0") without Perl setting $@ to "Died")? My problem: another routine has printed error messages to STDERR and I just need to add the die() part.

Note: prefer to use die() instead of exit() since the outer code optionally catches with eval {} (but usually it doesn't and just let the die message be printed to STDERR). Prefer not having to use Capture::Tiny or other non-core modules.