tcl list of variables code example
Example: tcl get list of variables
# print list of all variables to terminal:
puts [info vars];
# search for a variable and return index in [info vars]:
lsearch [info vars] tcl_version
# print list of all variables to terminal:
puts [info vars];
# search for a variable and return index in [info vars]:
lsearch [info vars] tcl_version