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


in reply to Installing Modules on a Web Server

use CGI::Carp qw(fatalsToBrowser);
But remember never to leave that in the production version of your program. It gives away too much information.

If your program breaks, it should log the errors for you in a log file, and send the browser an error message that says "something broke, we know what it is, thank you, try again later". That's all. No details.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.