Parse error: syntax error, unexpected $end

I have not this variable in a script. What is the reason of error?
Parse error: syntax error, unexpected $end

It usually means that an end-bracket, }, is missing.