DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

lassign(TCL)


lassign -- assign successive elements of a list to specified variables

Syntax

lassign list var [var ...]

Description

Assigns successive elements of a list to specified variables. If there are more variable names than fields, the remaining variables are set to the empty string. If there are more elements than variables, a list of the unassigned elements is returned.

For example,

lassign {dave 100 200 {Dave Foo}} name uid gid longName
assigns name to ``dave'', uid to ``100'', gid to ``200'', and longName to ``Dave Foo''.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003