Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set $*DIED-NATURALLY if exiting program without exception
Inspired by https://stackoverflow.com/questions/73040525/how-to-know-in-a-end-block-if-the-programm-died This minimal change allows an END block to do special actions if the program exited because of an exception: END { unless $*DIED-NATURALLY { # do special cleanup actions } }
- Loading branch information