http://qs321.pair.com?node_id=745909


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.