in reply to Simple syntax error?

While unrelated to your syntax error, the following line is equivalent to the last two in your code. I always hate to use two lines when one will do.

chomp( $letters = <STDIN> );