my $counter;
print "Content-type: text/html\n\n";
print $char.="*","<br>\n".++$counter
using my to declare your variable should resolve your scoping issue
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Nov 8, 2005, at 9:52 PM, 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:
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.