Okay, it is often said, but using warnings and strict forces you to write better code. If you want to debug CGIs use CGI::Carp. And be sure that your webserver/script has the right to alter your counter.dat.
use strict;
use warnings;
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
Yes, sir I have added that statement, still the same damn message, I`m gonna analyze that Apache conf. file in details, see what`s wrong with it
God bless Perl Monks