Plymouth Rock wrote:
  There is the problem: first running time my script gives correct results
on mod_perl2.0.2 (Win32, Apache2.0.54, IE6), but after any next restart (F5
in browser) the variables do not clear

Globals keep their values because the perl interpreter stays in memory with mod_perl. With CGI (like the way you are using ActivePerl), the interpreter is shut down after every request.

You can solve this by fixing your script to follow good programming practices and avoid global variables, or by using ModPerl::PerlRun instead of ModPerl::Registry. You should also read some of the mod_perl documentation to get a better understanding of how to port CGI scripts to mod_perl.

- Perrin

Reply via email to