in reply to Perl: Syntax Errors, Help Needed
Looks like homework.
Fix the syntax errors first. Then run the program in the debugger to check the logic and program flow.