foreach -- iterate over all elements in a list
varname list body
In this command
is the name of a variable,
is a list of values to assign to
is a Tcl script. For each element of
(in order from left to right),
assigns the contents of the field to
as if the
command had been used to extract the field, then calls the Tcl interpreter to execute
statements may be invoked inside
, with the same effect as in the
command. The command returns an empty string.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003