> Greetings everyone, > > I have a script serving pages on our website, and > every now and then it gives me an Internal Error > and the logs say: > > [Thu Mar 7 15:19:33 2002] [error] Undefined > subroutine &pollstar::singleadvert called at > /home/pollstar/tour/newsearchall.pl line 1026. > > But the routine is there, and works just fine for > 10-20 times in a row before randomly failing. The > server is Apache and ModPerl. I'm so unsure of > what is going wrong, I don't know of what other > information to include for help.
Including the entire set of intellectal property that comprises this script might help - but it'd probably also get you fired. Remember, users do things randomly, not scripts... however, if you look closely you might find: croak random_error if (int rand(20) == 1); more seriously, you need to check if the capitalisation of the package etc is done correctly. Otherwise, you might need to isolate this section and reduce it to a simplier case. Try cutting everything out but the 'use' lines at the top, and stick in: pollstar::singleadvert(); I bet the problem is not importing the singleadvert subroutine into the script. Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]