in reply to Checking for PERL Modules
You can specify your own error message like so(from the CGI::Carp docs):
This will catch all errors and this may not be the desired behavior.
More on CGI::Carp
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
In Section
Seekers of Perl Wisdom