> I am new to mod_perl and i have one problem<br>
.
.
.
> 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 are randomly hitting different
child processes each time you access your web server.
The solution to this problem depends on what your goal is with this
program.
Cheers,
Richard
--
----------------------------------------------------------------------------
Richard Dice * Personal 514 816 9568 * Fax 514 816 9569
ShadNet Creator * http://shadnet.shad.ca/ * [EMAIL PROTECTED]
Occasional Writer, HotWired * http://www.hotwired.com/webmonkey/
"squeeze the world 'til it's small enough to join us heel to toe"
- jesus jones