Chapter 2. Tcl Interpreter and Language Basics

This chapter covers the following topics:

Simple Variables in Tcl

Procedures

Arrays

if Command

switch Command

Files

This is where the rubber meets the road. Without a fundamental understanding of the command syntax, you will be unsuccessful in writing any programs whatsoever. Reading and attempting to memorize command syntax can be arduous and boring. To really get an idea of how to use commands in this chapter, a better solution is to use them in practice.

Tcl interpreters are supported on Mac, UNIX/Linux, Windows, and other operating systems. You can visit the Tcl Developer Xchange website at http://www.Tcl.tk/ or perform a search for the latest Tcl interpreters.

Note

To determine ...

Get TcL Scripting for Cisco IOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.