http://qs1969.pair.com?node_id=447688


in reply to exit or die in error handling?

depends on what you want to do. die gives an error message to STDOUT and is used if there is an error. exit on the other hand just ends the script.
see perldoc -f die and perldoc -f exit