display error on browser in perl

add the following line on the top of the cgi script

====================================

use CGI::Carp qw(fatalsToBrowser);

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/r8424051/public_html/nibatech.com/wiki/wp-includes/wp-db.php on line 1889