in reply to 500 server error with no explenation

This may save you some time and help - try using CGI::Carp. As it states in this node.. add this to your code:

use CGI::Carp qw(fatalsToBrowser);