in reply to Perl counter in cgi-bin

The error message looks (to me) like it's coming from the server attempting to execute, in the html file, whatever is calling your perl script. How closly have you looked at the invocation of your script?

You might try replacing that script with a simple "Hello World" to test that the invocation is working properly.

(so many nodes and so little time ... )