I don't know why it doesn't work but I can give you a few things to test.
Change the following line so it has a "4" where the "0" is. Does it always return 5 now? That would smell like a DB problem. Probably permissions. $count{$url} = 0 unless exists $count{$url};
Also, are you sure that your ENVironment contains DOCUMENT_URI? Always having a "" for that could be a problem.
Minor nit, why is "use strict;" turned off? What error made you do that? Is that or any other error in your webserver logs?
--
$you = new YOU;
honk() if $you->love(perl)
In reply to Re: simple web counter
by extremely
in thread simple web counter
by fred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |