in reply to Re: Simple Hit Counter
in thread Simple Hit Counter

It's nice and simple, indeed. But (sorry ;) you will run into problems with it. As soon as two people access the counter at the same time, funny things will happen to your counter, because you don't use file locking.

Have a look at perlfaq5 - web hit counter, or better yet, File::CounterFile.