Help w/perl

Posted by: papabill

Help w/perl - 11/11/10 09:25 PM

I have an .shtml page on my PC that includes this statement:
Code:
<!--#exec cgi="/cgi-bin/counter.pl"-->
that increments a hit counter. I want to put the same basic .shtml page on my Mac, but this does not work. I've tried the
Code:
<!--#include virtual="counter.pl"-->
in place, but it still does not work. Counter.pl and counter.dat (the actual number) are both in the /library/webserver/cgi-executables directory.

Ideas?
Posted by: Jim_

Re: Help w/perl - 11/12/10 10:29 AM

Without being in front of it this is kind of over my head, but my guess is that
Code:
<!--#include virtual="counter.pl"-->
isn't the kind of executable Apache in OS X can use.

http://carambola.usc.edu/how2makeahitcounter.shtml

The first mcount.zip link on that page is a 404, the next works thought.