Saturday, September 6, 2014

How to print a variable value in TCL

Just be sure about the existence of the variable simply "a" and write:

puts $a


For beginners: If you are learning and wanting to run a Tcl program for the very first time, try to write the world's most famous program like this:

set a "Hello World!"
puts $a

Now, guess want you are expected to get. ;)

No comments: