#!/usr/bin/perl
#------- demo CGI script ------------

print "Content-type: text/plain\n\n";

print "

 Hi.

 At the tone, the time will be
 ", scalar localtime , ".\n";

#-----------------------------------
#
#  First, note that this is a script
#  that can be run from the command line
#  by ./hi.cgi
#
#  Second, the web server on this computer
#  is set to treat things that end with .cgi
#  as programs to be run.  The output is sent
#  to the web browser.
#
#  Third, the first line must describe a valid
#  MIME type that tells what the rest of the 
#  the output is.  Typical types are things like
#     text/plain
#     text/html
#     image/png
#  The stuff that the program prints out should
#  match the MIME type.  
#
#
