Exercises, examples and other material relating to training module T206. This topic is presented on public courses
Learning to program in Tcl,
Tcl Basics
Tcl Programming - The Tcl programming language, and Expect
This course covers the fundamentals of the Tcl
programming language. You'll learn about Tcl ... http://www.wellho.net/course/tbfull.html [course] |
Learning to Program in Tcl - The Tcl programming language, and Expect
This course covers the fundamentals of the Tcl
programming language. You'll learn ... http://www.wellho.net/course/tlfull.html [course] |
Should you use append, lappend or even concat to add to variable in Tcl?
append puts one string directly on the end of another, without adding any extra ... http://www.wellho.net/mouth/1402_Tcl ... oncat.html [short article] |
Tcl's lsort command lets you sort a list - and that can be a list of the keys of an array. You can't sort the array, but once you have the list of keys ... http://www.wellho.net/mouth/1405_Sor ... rrays.html [short article] |
Split and join in most languages convert strings of text into arrays / lists / collections of other sorts. But in Tcl, all variables are held as strings, ... http://www.wellho.net/mouth/2472_spl ... xpect.html [short article] |
In Tcl, you can use the lappend command to add items on to a list, but it doesn't always do exactly what you wish it to. Let's say that I've got two ... http://www.wellho.net/mouth/781_Tcl- ... oncat.html [short article] |
In Tcl, all variables (except 'arrays') are held as strings of text - and that includes lists. A list is a string which is treated as a collection of ... http://www.wellho.net/mouth/2468_Wha ... ists-.html [short article] |
A variable might contain a series of words and, if it does, it can be treated in a special way, as a list through which your program can iterate. This module describes how such lists are handled, and goes on to cover list-related commands. Several sample programs show you how to make best use of lists.
This topic is presented on public courses
Learning to program in Tcl,
Tcl Basics
Examples from our training material
| acr2 | Treating lines of data read from file as a list |
| days | A list of days |
| fido | Open and read a file line by line |
| pk4.tcl | Generate a series packet sizes for network testing |
| stdlook | Look up Florida dialling codes |
Background information
This module is available under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
How lists are handled in Tcl.
List-related commands.
Creating and modifying lists.
Extracting information from a list.
Manipulating lists to create other lists.
Sample programs using lists.
Reading an access log file.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Tcl/Tk, Expect,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.