use CGI::Carp qw(fatalsToBrowser); # You are using CGI, right?