in reply to lolhackedlol

The code you posted has a syntax error (missing semicolon after close(KEYWORD). Post your actual code.

Tip #1 from the Basic debugging checklist: use warnings. Tip #2 print.