Computing Staff
  • 0

Syntax Error Unexpected End Of File In TCL

  • 0

Hi,

I am new to TCL, I am running one simple TCL program
set VAL 1
if {$VAL < 7} {
puts “…”; exit 1 }

It is giving an error
“unexpected end of file”

Can any body help me..

Share

2 Answers

  1. Are you sure that there is a space between the closing and opening braces at the end of line 2? Lack of space here can throw the interpreter.

    • 0
  2. The “unexpected end of file” error usually means you have a php block unterminated. The parser reads off the end of the file searching for block termination, usually

    • 0