Let’s assume that thefilevalue_$thefile is an array that contains lists
foreach element [array names thefilevalue_$thefile] {
puts "[lindex $thefilevalue_[subst $thefile]($element) 0]"
}
but it returns :
can't read "thefilevalue_": no such variable
i am in tcl 8.4 and i con’t upgrade it.
how can i fix it ?
Thanks
Use
setand escape the parentheses, e.g.This outputs for me (Tcl 8.0.5, and I can’t upgrade either):