in reply to Internal Server Error

use CGI::Carp qw(fatalsToBrowser);
is also a useful one to try - the error messages will go straight to the browser so you don't even have to go looking elsewhere :)