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

Reply via email to