in reply to Form validation using CGI

Don't bother with Vars(), there are caveats you don't need to learn, its easier to use param.
If you want validation, don't bother with CGI, start with Basic Tutorial - Step 1: Intro to FormBuilder, makes things really simple for you.
More advanced :
Validating Web forms with Perl
Rapid Website Development with CGI::Application