First, I'm pretty new to perl. I've done some simple stuff, like search and replace, and minor text formatting, but nothing even remotely advanced.
I have a perl/MySQL site that was written in Perl 5004-1. I've been tasked with migrating it from the contractor. My server is running perl 5.8.1. Most of it works fine, though I had to comment out instances of CGI::use_named_parameters. (Will that break anything??)
There is at least one section of the site that does not work. When a form is submitted, a query is run. The script calls itself, and then draws the results page (I think) based on the presence of certain variables. The results page draws the template areas of the page, but nothing in the content section, which *should* contain some hard coded HTML, and the results of the query. No errors are reported. When perl is called with -w or -W, the only warnings thrown are:
Name "main::formlist" used only once: possible typo at htgmsrch.pl lin
+e 9.
Name "main::dbh" used only once: possible typo at htgmsrch.pl line 165
+.
Both of these variables (I think they're arrays) are first used in a file that's require()'d earlier.
Basically, my questions are: Why doesn't it count the formlist and dbh in the require()'d file, and How do I go about troubleshooting this, if there are no errors?