split(1,n)(n) Tcl Built-In Commands split(1,n)(n) NAME split(1,n) - Split a string(3,n) into a proper Tcl list SYNOPSIS split(1,n) string(3,n) ?splitChars? DESCRIPTION Returns a list created by splitting string(3,n) at each character that is in(1,8) the splitChars argument. Each element of the result list will consist of the characters from string(3,n) that lie between instances of the charac- ters in(1,8) splitChars. Empty list elements will be generated if(3,n) string(3,n) contains adjacent characters in(1,8) splitChars, or if(3,n) the first or last character of string(3,n) is in(1,8) splitChars. If splitChars is an empty string(3,n) then each character of string(3,n) becomes a separate element of the result list. SplitChars defaults to the standard white-space characters. For example, split(1,n) "comp.unix.misc" . returns "comp unix misc" and split(1,n) "Hello world" {} returns "H e l l o { } w o r l d". SEE ALSO join(1,n)(n), list(n), string(3,n)(n) KEYWORDS list, split(1,n), string(3,n) Tcl split(1,n)(n)