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:
print "Content-type: text/html\n\n"; print $char.="*","<br>\n".++$counter unless I restart my Apache webserver. There isn't any problem when the script is running or restarting on ActivePerl5.8.7. How to solve the problem for mod_perl without clearing the variables manually at the end of the script ($char.=""; $counter=0) or restarting the webserver before every script's restarting? Thanx.