#!/usr/local/bin/perl # # A simple CGI script that reads a list of words and produces # a page with some suggested word-based URLs to go look at. # # script by David Chess, http://www.davidchess.com/, September 1999 # this code is hereby committed to the public domain, for the # furtherance of the general happiness of humankind. # use strict; # Perhaps track referers, to see how famous we are. my $reflog = ""; if ($reflog) { if (defined $ENV{HTTP_REFERER}) { if (open FH,">>$reflog") { print FH timestamp()." WordURL.cgi: ".$ENV{HTTP_REFERER}." (".$ENV{REMOTE_HOST}.")\n"; close FH } } } srand(); my @wordlist; # A naughty global variable print <<'EOD'; Content-type: text/html
$bodytext