in reply to Syntax Error Messages (was: Beginner needs help (in more ways than one !))

Try to type your keywords in lowercase:
while (<CLI>) { ... }
(not While)

--
tune