It may be a trivial question; but I am facing problem to covert a list to array inside a tcl script.
set mylist { one two three four five }
I need to convert this to array myArr. One more doubt, Can we use list elements as separate, like I want to use second element of mylist i.e. mylist(1)?
lindex
:puts [lindex $mylist 1]
fortwo
in your example.