#!/usr/bin/perl -w use CGI ":standard"; $result = open FILE, "; close FILE; } else { $count = 0; } #add the current visitor $count = $count + 1; #update file. open FILE, ">count.log" or die "Unable to update file.
\n"; print FILE "$count"; #Now write the count to the client print header; print start_html ("Visitor Count"); print "

You are visitor number $count

"; print end_html;