Also try hitting refresh a lot of times and see if the results vary - if they do then it is because you are using different processes and implies a mod_perl/apache config problem. If it doesn't then it implies something in your script. Running the script from the command line might provide insights as well. I can heartily recommend
pages for some good documentation/tutorials on mod_perl.