Re: variable substitution within quotes in braces



* abhilasha21 <abhilasha21.gupta@xxxxxxxxx>
| I want to assign ' xyz:abc123@xxxxxxxx' to a variable say abhi.
|
| so my string should look like :
| {<ab:max><ab:mid="$abhi"/></wyty:ert>} .
|
| Can anyone please help me to solve this trick in TCl..?

Build it in pieces:
set abhi xyz:abc123@xxxxxxxx
set result {}
append result {<ab:max><ab:mid="} $abhi {"/></wyty:ert>}
=> <ab:max><ab:mid="xyz:abc123@xxxxxxxx"/></wyty:ert>

HTH
R'
.