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.
In reply to Die silently? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |