#!/bin/perl
require "cgi-lib.pl";
if (&ReadParse(*input)) {
print &PrintHeader;
print "
Hangman ";
print "
The Hangman Game ...
";
if ($input{'done'} eq 'done') # the person guessed the word
{ if ($input{'real'} eq $input{'new'}) # did they get it right?
{print 'You were right.';}
else {print 'You were WRONG!
';
print 'It was really ',$input{'real'},'.';}
print '