Your professor must be a very incompetent Perl programmer to have you use such an old and poorly written script.
To check for syntax errors, execute it from the command line like this:
D:\perl>perl -c Form-mail.pl
Form-mail.pl syntax OK
While being extremely poorly written, it doesn't have any syntax errors.
What response are you getting that lead you to believe that it had syntax errors?