#!/usr/local/bin/perl # CGI Script: counter.pl use CGI; $query = new CGI; # Fetch the current count $count = $query->param('counter') || 0; # Increment it by one $count++; # Get the script name $script_name = $query->script_name(); print $query->header; print $query->start_html('Counter_Script'); print <Counter Script This script has been called $count times.

Reload this script. END ; print $query->end_html;