Questions tagged [tcl]

14 questions
3
votes
2 answers

In TCL SCRIPT, how to add dict or array

I am trying to create an output format like keyword start_number last_number on a dictionary or array format. In my code, I used a dictionary, and the code is: set keyword_numbers {} set previous_keyword "" set last_no 0 foreach item $data { …
1
vote
1 answer

Tcl code to compare between two files(specific lies)

This TCL code I wrote to fetch pin details and compare with layer and rect proc fileinput {filename} { set filedata [open $filename r] set file1 [ read $filedata ] close $filedata set pindata [dict create] foreach line [split…