perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Johnson <>
Subject Odd error from subprogram in 'required'
Date Thu, 17 Sep 2009 19:15:33 GMT
I'm getting this error:

[Thu Sep 17 10:52:13 2009] [error] Undefined subroutine  
::PerlRunPrefork::home_oraweb_perl_avi_login_2epl::PrintHeader called  
at /home/oraweb/perl/avi/ line 43, <FH1> line 71.\n
[Thu Sep 17 10:52:13 2009] [error] [client] malformed  
header from script. Bad header=_OF_FUNC:
[Thu Sep 17 10:52:13 2009] [warn] /avi/ did not send an HTTP  

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 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

View raw message