in reply to Perl Strict 502 Error No DEBUG SUPPORT

The error message you're expecting to see is being sent to STDERR which need to be redirected to be able to see it in the browser. In order to do that, add this use statement:

use CGI::Carp qw(fatalsToBrowser);

To be able to also see the warnings (as html comments), you need to adjust that statement to this:

use CGI::Carp qw(fatalsToBrowser warningsToBrowser);

And, add this statement right after printing the header.

warningsToBrowser(1);