Great job on this! I just added this line: print "Content-Type: text/html\n\n";
as the first line of the script, put the resulting script into my cgi-bin, and set the resulting URL as my startup page for my browser. Now I get strange fortune wisdom every time I fire up my browser! Thanks for making my day just a little more surreal!
First, I had trouble with __END__, seemed to work better with __DATA__.
Here is the same thing looking a little more perlish and minus the deprecated FONT tag and BODY attributes and not using header tags to provide large text. Putting style back in using CSS is left as an exercise for the reader.