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

No comments:

Post a Comment