What I want to do seems simple, but I don't know if the TCL interpreter has this functionality.
I have a tcl script that will have thousands of variables defined prior to running within its scope -- this is done by a pre-script that simply does a "global" on the thousands of variables to bring it into this current scope.
Is there an easy way to determine which of those thousands of variables were actually used during that script?
For instance, if the script has variables
a,b,c,d,e,
but only variable e was accessed (whether modified or just used), I would like to know.