FeraliX has asked for the wisdom of the Perl Monks concerning the following question:

I've been running a server off of my computer with PERL 5.8.8, and just recently tried uploading it to a website running PERL 5.8.3. When I try and run the site, I get a 505. I used their debugging program and it gave me the following, I've tried looking it up the problems, but can't find anything.

main::generate() called too early to check prototype at Index.pl line +52. Name "main::Recr" used only once: possible typo at Index.pl line +69. Name "main::Before" used only once: possible typo at Index.pl lin +e 97. Name "main::Forum" used only once: possible typo at Index.pl li +ne 71. Name "main::Sch" used only once: possible typo at Index.pl lin +e 33. Name "main::Login" used only once: possible typo at Index.pl li +ne 73. Name "main::Guide" used only once: possible typo at Index.pl l +ine 70. Name "main::GInfo" used only once: possible typo at Index.pl +line 68. Name "main::Hist" used only once: possible typo at Index.pl +line 72. Use of uninitialized value in read at Database.pl line 280. +Use of uninitialized value in string eq at Index.pl.

2006-07-07 Retitled by Corion, as per Monastery guidelines
Original title: 'Errors'

20060707 Janitored by Corion: Added newlines after code tags

Replies are listed 'Best First'.
Re: Errors from perl script uploaded to server
by davido (Cardinal) on May 03, 2006 at 06:27 UTC

    I wonder, is it possible that a portion of the script exists in a seperate file, and you failed to upload that file? It almost sounds like there's a file that you "do" into your script, which contains several subroutine definitions. I'm surprised that, if this hypothetical file doesn't exist on the new server, you're not getting an error message relating to the do command, but in that regard it's also possible that the do is held within an eval to trap errors.

    You're also not using strict, are you?


    Dave