Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Debug problem

Posted by skumar003 (skumar003), 12 February 2003
I am facing an error which says" extra charcters after close brace" and visually i cannot figure out anything wrong with the code.

How can debug this further and pinpoint the error.?

Posted by admin (Graham Ellis), 12 February 2003
Could be that you have some sort of control characters on the end of your command that you shouldn't have - that can cause this message.    If you're on a unix or linux box, call up the file in vi and
:set list
which will display all wierd characters using visible multi-letter sequences.   The od utility is an alternative.

The other possibility is that you have a } character followed straight away by something other than a space - remember that in Tcl, the space charaacter separates parameters and so
set  {fred}  {19}
is NOT going to be that same as
set   {fred}{19}
(note tha different spacing here

Posted by skumar003 (skumar003), 12 February 2003
I have pasted the exact code snippet heer , please see if U can find anything weird

if { $command == "P_ADD" } then {

           for {set nn [expr $tab_tot_lines - 1]} {$nn >= $log_line} {incr nn -1} {

                 set step_number_indicator_log([expr $nn + 1]) $step_number_indicator_log($nn)
                 set step_description_log([expr $nn + 1]) $step_description_log($nn)
                 set repeat_count_log([expr $nn + 1]) $repeat_count_log($nn)
                 set line_enable_log([expr $nn + 1]) $line_enable_log($nn)
                 set script_name_log([expr $nn + 1])      $script_name_log($nn)

Posted by admin (Graham Ellis), 12 February 2003
I create some variables so that I could get into the code, the ran your pasted code.   No problem ... it ran.

Did you try od or vi to look for odd characters?   If so, did it come up clean?   Cutting / pasting into the forum may well have removed the special character(s) that are possible causing the problem.

If you don't have any tool that can look at your program in the way I'm suggesting, take a copy of the Tcl program and retype the line that's causing the problem - hopefully the problem will go away.

Posted by skumar003 (skumar003), 12 February 2003
I will retype and see one more time.


This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho