Top "Tcl" questions

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.

tcl deep recursive file search, search for files with *.c extension

Using an old answer to search for a file in tcl: https://stackoverflow.com/a/435094/984975 First lets discuss what I …

recursion tcl file-search
How to keep commands quiet in TCL?

How to execute set command without printing output on the screen? I want to read a file without displaying the …

tcl
version conflict for package "Tk": have 8.5.2, need exactly 8.5.15

I am trying to compile a program (python2.7) but no matter what I do I keep getting this error: C:/…

python python-2.7 tcl tk
How to print all environment variables in TCL?

In TCL, how can I print all environment variables using a single line command?

environment-variables tcl
How to execute tcl scripts in tchsh with arguments

Normally I invoke my tcl script under shell like this. > tclsh8.5 mytest.tcl -opt1 foo -opt2 bar In case …

shell tcl tclsh
Should I use Perl/Tk, Tcl::Tk or Tkx for a Perl GUI?

I really like Perl/Tk, but have come to the opinion that it's DOA. I think Tcl::Tk and Tkx …

perl user-interface tcl tk tkx
Tcl $argc and $argv variables

I'm kinda new to tcl but I have to write a proc that looks like this: proc TestVerb { Data Data_…

variables tcl global argv argc
How to check if a variable is set in expect script?

I am doing something like this: #!/usr/bin/expect -f if {$out != ""} { send_user $out } But it doesn't work. Error …

tcl expect
How to implement two dimensional arrays in tcl

Need assistance in creating two dimensional arrays. I need to create the below scenario nblist_0 = {1,2,3,4} nblist_1 = {3,7,5,9,1} nblist_2 = {7,4,9,2,5} nblist_3 = {1,2,4,6} nblist_4 = {1,5,4} ... Since …

arrays tcl ns2
basic Tcl -- printing a value of variable

I have the following script in Tcl: set val(a) 10 set val(b) 10 set val(n) expr{$val(a) * $val(…

set tcl puts