Perl Programming/Keywords/die

The die keyword
The die comment raises an exception. If called inside an eval, its message is stuffed into $@, and eval returns with the undef. If the exception is outside of all enclosing evals, the uncaught exception prints LIST to <tt>STDERR</tt> and exits with a non-zero value. For a specific exit code, <tt>exit</tt> should be called.