in reply to Re: •Re: Re: Setting $! to custom values
in thread Setting $! to custom values

die is better in the case of uncaught exceptions. If a subroutine just sets $@ and another programer blindly calls it without checking $@ after it runs, the program goes on. Whereas with a die, the programmer will know that they are a bozo as soon as that code path is tested and fix their code.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated