Re: global variables in mod_perl

2000-06-29 Thread Casey Bristow
seems to me, that the script is working as it should.. you are just hitting several different instances of the script.. one for each apache child process.. try starting apache with the -X flag. './httpd -X' .. this will cause apache to run in single process mode. hope this helps. On Thu,

Re: global variables in mod_perl

2000-06-29 Thread Richard Dice
> I am new to mod_perl and i have one problem . . . > This script writes 1,1,1,2,2,2,3,3,3,2,2,3,4,2,1 . > randomly !! Global variables are your problem. The thing is, each global has a value that is persistent... IN ANY GIVEN APACHE CHILD PROCESS! So, your increments are working, but you

global variables in mod_perl

2000-06-29 Thread Tomas Zeman
Hi all, I am new to mod_perl and i have one problem I want to rewrite this simple script from fastcgi to mdo_perl - use FCGI; $cnt = 0; while (FCGI::Accept) { print "Content-type:text/html\n\n"; print $cnt++; } - This script writes (when i relaod it) 1,2,3,4,5,... and $cn