Showing posts with label TCL. Show all posts
Showing posts with label TCL. Show all posts

Friday, June 7, 2013

TCL Tutorials - Quoting


An Example of how to use quotes in tcl


ex_quoting.tcl

set years 32
set years_sub "I am $years";
set years_no_sub {I am $years};

puts "this string got substituted - weak quoting"
puts $years_sub

puts "this string did not substitute - rigid quoting"
puts $years_no_sub

Wednesday, June 5, 2013

TCL Tutorials - Line Continuation


This examples states the use of line continuation

ex_02.tcl

set members { \
abc \
def \
ghi \
jkl \
}
puts $members