http://www.perlmonks.org?node_id=114917

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am writing a module to use here at work and am stuck with what to do with errors. I figure I have 2 ways of dealing with them. 1) Let the module kill the script (die) and report the error or 2) Return the error to the caller and let the caller deal with it. Any suggestions on how to properly deal with errors would be much appreciated. Thanks AM