add the following line on the top of the cgi script
====================================
use CGI::Carp qw(fatalsToBrowser);
add the following line on the top of the cgi script
====================================
use CGI::Carp qw(fatalsToBrowser);