[EMAIL PROTECTED] wrote:
Okay,

So I may be a fool for asking this question, but I hope you will all forgive me. I am fairly new to Perl and really really new to mod_perl. I am working to convert my site to use mod_perl and am having problems with two require statements that exist in most of my scripts.
Basically, the require statements point to two other scripts that are back end handler scripts. They are comprised of a couple of subroutines each.
Everything works great if I don't run the site through mod_perl as you can imagine. When I do run the site through mod_perl I get internal server errors reported from apache.

The errors in the error_log report: ModPerl::Registry: Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::var_www_test_home::doSession called at /var/www/test/home line 48.

The line in the home script is: my ($user_id,$session_key) = &doSession
($page_number,$command,$secure,$page_name);

with the require line reading:
require "/var/www/test/session_key.pl";

I'm still reading the numerous web sites that refer to this problem, am hoping to find a quick fix/good explanation of this problem.
I don't think anybody will call you a fool for asking a question. The "worst" you can get is the RTFM reply, which follows :)

Don't read numerous sites, read the *only* site, perl.apache.org. Because the majority of sites that have mirrored the guide are badly outdated.

1. go perl.apache.org
2. search for "Undefined subroutine"

the 4th and 5th hits give you want you want.

since this problem is the same in mod_perl 1.0 and 2.0 the solution should be moved out from the 1.0 guide, into the generic docs. Doc patches are welcome.


__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to