Re: newbie question - require

2000-05-15 Thread w trillich

Brett Lee wrote:
> but with mod_perl, the info in the hash tables seems to be found "every
> other refresh" (which has me stumped).
> 
> Would anyone be able to suggest a solution or reading material on this?

don't forget to check your stuff out with single-process mode,
via 'apachectl stop; apache -X'; if it's acting sporadically in
your browser, it may be because you're talking to different child 
apache servers, each in its own state of affairs...

http://perl.apache.org/guide/porting.html#Sometimes_it_Works_Sometimes_it



RE: newbie question - require

2000-05-15 Thread Graf, Chris

Check the mod_perl guide for the usage of require() and do(). You probably
want to use do() instead of require().

Chris


-Original Message-
From: Brett Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 7:56 AM
To: [EMAIL PROTECTED]
Subject: newbie question - require

In moving from CGI.pm to mod_perl, I ran across the common error with
functions that exist in scripts pulled in with 'require'.
Mod_perl_traps.html had the solution.  Similarly, am using ('require')
another file which holds all the hash tables (countries, states, etc.)
that my scripts need to reference.  It appeared to work fine in CGI.pm,
but with mod_perl, the info in the hash tables seems to be found "every
other refresh" (which has me stumped).

Would anyone be able to suggest a solution or reading material on this?

Thanks in advance.
-Brett



newbie question - require

2000-05-15 Thread Brett Lee

In moving from CGI.pm to mod_perl, I ran across the common error with
functions that exist in scripts pulled in with 'require'. 
Mod_perl_traps.html had the solution.  Similarly, am using ('require')
another file which holds all the hash tables (countries, states, etc.)
that my scripts need to reference.  It appeared to work fine in CGI.pm,
but with mod_perl, the info in the hash tables seems to be found "every
other refresh" (which has me stumped).

Would anyone be able to suggest a solution or reading material on this?

Thanks in advance.
-Brett