I'm getting this error:
[Thu Sep 17 10:52:13 2009] [error] Undefined subroutine
&ModPerl
::ROOT
::ModPerl
::PerlRunPrefork::home_oraweb_perl_avi_login_2epl::PrintHeader called
at /home/oraweb/perl/avi/login.pl line 43, <FH1> line 71.\n
[Thu Sep 17 10:52:13 2009] [error] [client 65.55.106.207] malformed
header from script. Bad header=_OF_FUNC: login.pl
[Thu Sep 17 10:52:13 2009] [warn] /avi/login.pl did not send an HTTP
header
The undefined subroutine IS defined; it's loaded via a line:
require "avi-defaults";
And the subroutine is just:
sub PrintHeader {
return "Content-type: text/html\n\n";
}
The line as called in login.pl is just:
print &PrintHeader;
Now this subroutine is called *throughout* the application, as you
might guess, every time we write a html page for display, the app is
comprised of about 40-50 different scripts.
Heck, every CGI perl script on our server uses the same code, which is
defined in the '<appname>-defaults' file for each application.
ONLY this one script is generating the error.
I've examined the file, there's no odd characters or anything in it.
--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group
Institutions do not have opinions, merely customs