osunderdog has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking for the Canonical CGI counter script in perl. Preferably using CGI.pm on unix.

Does anyone have a pointer for me?

Hazah! I'm Employed!

Replies are listed 'Best First'.
Re: Canonical CGI counter
by davido (Cardinal) on Aug 24, 2005 at 20:24 UTC

    You can get an example from Re: counter, or from One of merlyn's columns. Or just output a random number and cheer every time you get a high value, and as an added bonus you won't have to deal with file locking.


    Dave

Re: Canonical CGI counter
by derby (Abbot) on Aug 24, 2005 at 19:23 UTC

    NMS and probably the text counter.

    -derby

      Bear in mind that the NMS programs might be slightly less than Canonical in the sense that they are written to work with perl 5.00404 (when CGI.pm first got in the core) and greater. Nonetheless we like to think they are tidily coded and secure and we will fix them if you find a bug.

      You could probably do it in about half the code with File::CounterFile if you have the luxury of installing modules.

      /J\