TCL : Concatenate a variable and a string

前端 未结 7 1624
有刺的猬
有刺的猬 2021-01-01 12:43

Assume we have a variable \'a\' set to 12345 :

set a 12345

Now how do i set a new variable \'b\' which contains the value of \'a\' and anot

7条回答
  •  再見小時候
    2021-01-01 13:25

    other option is to use set command. since set a gives value of a we can use it to set value of b like below

    set b [set a]9876

提交回复
热议问题