Table of Contents
Tcl commands often have "subcommands". The string command is an example of one of these. The
string command treats its first
argument as a subcommand. Utilizing subcommands is a good way to
make one command do multiple things without using cryptic names.
For instance, Tcl has string length
instead of, say, slength.
This lesson covers these string subcommands:
string length stringReturns the length of
string.
string index string indexReturns the
indexth character from
string.
string range string first lastReturns a string composed of the characters from
first to
last.