I'm beginner in TCL scripting and I'm trying to store list as part of associated array as below.
script:
set cellno 0
set red redcolor
set green greencolor
set blue bluecolor
set myVariable($cellno) {$red $green $blue}
puts [lindex $myVariable($cellno) 2]
problem:
For some reason puts [lindex $myVariable($cellno) 2] is displaying value as below
$blue
Instead of
bluecolor
set myVariable($cellno) "$red $green $blue"