draft 1 of cgi as a PL script for easy working in emacs
created a .cgi file for CGI script using mv in bash