The purpose of this document is to show
how the introductory programming examples from the book Python Scripting for
Computational Science can be implemented in Perl and Tcl. Topics covered
includes: Introduction to Tcl/Tk, A Scientific Hello World Script, Automating
Simulation and Visualization, Frequently Encountered Tasks, GUI Programming with
Tcl/Tk.
Tcl
is a scripting language created by John Ousterhout. It can be used
interactively, or by running scripts (programs) which can use a package system
for structuring, hence allowing to do much with little code. This book discusses
the GUI toolkit Tk in considerable extent, even though it's not in the title.
For most users, Tcl/Tk form a single conceptual entity.
This note introduces the basics of Tcl. Chapter1
describes the fundamental properties of the language. Chapter 2 is a short
introduction to running Tcl and Tk on UNIX, Windows and Macintosh systems.
Chapter 3 presents a sample application, a CGI script, that implements a
guestbook for a Web site. The rest of this book covers basic programming with
Tcl.