Try putting the CGI::Carp line in your original script (at the top).
In reply to Re^3: CGI Login script error by Joost in thread CGI Login script error by mattdope