in reply to Checking Submitted Form Data

One minor detail - since you are useing CGI.pm, you might as well replace print "Content-type: text/html\n\n"; with the cross-platform, OO, more correct and stylish print $q->header(); *grin*. Even though, as was pointed out to me in this node, it usually doesn't matter, it is the right thing to do. :)
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.