文档介绍:Practical Programming
in Tcl and Tk
Brent Welch
DRAFT, January 13, 1995
Updated for Tcl and Tk
THIS IS NOT THE PUBLISHED TEXT
THE INDEX IS PLETE
SOME SECTIONS ARE MISSING
THE MANUSCIRPT HAS NOT BEEN EDITED
GET THE REAL BOOK: ISBN 0-13-182007-9
An enhanced version of this text has been published by
Prentice Hall: ISBN 0-13-182007-9
ments via email to
welch@
with the word “book” in the subject.
/~bwelch/book/
The book is under copyright. Print for personal use only.
This on-line DRAFT is available curtesty the kind folks at PH.
Table of Contents
1. Tcl Fundamentals ............................................. 1
Getting Started ............................................................1
mands .............................................................2
Hello World ..................................................................3
Variables ......................................................................3
Command Substitution ................................................4
Math Expressions ........................................................4
Backslash Substitution ................................................6
Double Quotes .............................................................7
Procedures ...................................................................7
A While Loop Example ..................................................8
Grouping mand Substitution .......................10
More About Variable Substitution ..............................11
Substitution And Grouping Summary ........................11
Fine Points .................................................................12
Comments .................................................................13
Command Line Arguments .........................................13
Reference ...................................................................14
Backslash Sequences ...........................................