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
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
The 8 most common errors ....

Posted by admin (Graham Ellis), 24 October 2002
"What's wrong with my program" - a very common cry from newcomers (and sometimes non-so-new-comers) to Tcl.  This is a list of the 8 most common problems that I come across - you might like to quielly check any code that isn't doing what you expect (or isn't compiling) against the list

1. Have you mis-spelt a variable name?

2. Have you mis-spelt a command name?

3. Have you used a $ when setting a variable, or left one off when using the contents of a variable?

4. Do your brackets balance?

5. Have you left spaces in the right places?

6. Have you added a new line in the middle of a command and forgotten the \ on the end of all lines except the last?

7. Do you need \ protection on anything?

8. Have you got () {} or [] mixed up?

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., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: • WEB: • SKYPE: wellho