XPS-Q8
Table of Contents
2.1
Introduction ............................................................................................................................. 2
2.2
2.2.1
2.2.2
Variables .............................................................................................................. 3
2.2.3
Command Substitution ......................................................................................... 3
2.2.4
Math Expressions ................................................................................................. 4
2.2.5
Backslash Substitution ......................................................................................... 4
2.2.6
2.2.6.1
2.2.6.2
2.2.6.3
2.2.6.4
2.2.7
Procedures ............................................................................................................ 7
2.2.8
A Factorial Example ............................................................................................ 8
2.2.9
More about Variables ........................................................................................... 9
2.2.9.1
2.2.9.2
2.2.9.3
2.2.10
2.2.11
Comments ........................................................................................................ 12
2.2.12
2.2.13
Fine Points ....................................................................................................... 13
2.3
Reference ............................................................................................................................... 14
2.3.1
Backslash Sequences ......................................................................................... 14
2.3.2
Arithmetic Operators ......................................................................................... 14
iii
Tcl Manual
EDH0307En1041 - 10/17