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


in reply to Checking for PERL Modules

You can specify your own error message like so(from the CGI::Carp docs):
use CGI::Carp qw(fatalsToBrowser set_message); BEGIN { sub handle_errors { my $msg = shift; print "<h1>Oh gosh</h1>"; print "Got an error: $msg"; } set_message(\&handle_errors); }


This will catch all errors and this may not be the desired behavior.

More on CGI::Carp