in reply to
different between die and exit
Also, die (by default unless caught) returns a non-zero exit status to the operating system, whereas exit (by default) returns a zero exit status.
Update: corrected as per ikegami's comment.
It makes no sense to talk of "by default" for die. There's no argument to specify the exit code, so it can't be omitted to use the default.
Also, die always returns non-zero ($! || ($?>>8) || 255).
Results (453 votes),