hi
I've some troubles with something really stupid:
I've a list of variable which contains topics, as the following:
set comput "Computers & internet"
set business "Business & politique"
one of my procedures have this line:
set rub "comput"
get_topic $rub
where get_topic is another proc.
and now, the trouble:
proc get_topic { rub } {
global comput business chan
set topic $[subst $rub]
puthelp "PRIVMSG $chan :topic is $topic"
}
And it returns "$comput" and not "Computer & Internet".
If I just use set topic [subst $rub] it returns me "comput" and if I try ${$rub} it answer "can't read $rub : no such variable"
How can I do to have $topic set with the value contains in the variable named in $rub?
Thx a lot