in reply to Re^4: CGI Login script error
in thread CGI Login script error

You should also use the CGI line from the OP. In other words ADD the CGI::Carp line - don't replace the use CGI line,

And check the server logs if CGI::Carp doesn't help.

I think I've mentioned that once or twice already.