Question: tcl how to pass array to proc?
Answer: TCL Training Series – Passing an array as procedure argument If you want to pass an array, which s essentially a collection of variables, to a procedure in TCL, you can use the command `upvar` as explained earlier. You are passing a name to the procedure and then using it to access the array at the previous level.