Oct 3, 2012, 11:48 AM
Post #1 of 3
I have written a perl script that is supposed to call a subroutine (PrintPageHeader) in another script (PageHeader.pl). (The PrintPageHeader subroutine prints the html code for the header portion of a webpage that is used in several scripts). My calling perl script uses require '/fullpathtoscript/PageHeader.pl'. Later the script calls the subroutine with its parameters PrintPageHeader($ClientName, $ClientLogo);
Undefined subroutine error
The problem that I am having is that sometimes I am getting the error message "Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::website_thrasherandheckman_2dsecure_cgi_2dbin_Caseshow_2epl::PrintPageHeader called at /website/thrasherandheckman-secure/cgi-bin/Caseshow.pl line 45. " I cannot understand how this error is happening. It is happening intermittently but regularly. Sometimes, the error will occur when the page initially displays properly and I hit refresh.
Any ideas what might cause this problem?