I just found myself in a position where I have two arrays in TCL/TK.
I'm given $W_Array and $P_Array
I need to traverse through one array not knowing what the size of each one is before hand, and execute a command only when there is a value for both arrays. Yes the array lengths could be different.
What is the best way of doing this?