Hello,lists,

I have a strange problem for my modperl programs which are run under 
Apache::Registry (MP1).
In my script I require some templates like:

require "templates/groupshow_head.tpl";

Here groupshow_head.tpl is a template file which primarily print chunk of HTML 
codes in subroutine,like:

sub print_groupshow_head
{
    print <<HTML_EOF;
    html codes here
HTML_EOF
}

Then in my main scripts I called these subroutines directly,like:

require "templates/groupshow_head.tpl";
print_groupshow_head();


But the problem is many time I can't get the correct result,and get this error 
in error_log:

[error] Undefined subroutine 
&Apache::ROOT::groups::listMembers_2epl::print_groupshow_head called at 
/home/apache1.3/modperl/listMembers.pl line 26.\n

Ok,then I restart Apache,thing become fine.

Can you tell me why this happen?Thank you.





--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/

Reply via email to