Thank you very much Aristotle et al. Once I inserted the CGI::Carp module, I was able to debug the script from the browser. I found a syntax error right away. I unknowingly put a "print" statement between the end of an "if" bracket and an "else" bracket when trying to debug the script. Thank you for the great tip!
David K.