ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



split(n)                                    Tcl Built-In Commands                                   split(n)



____________________________________________________________________________________________________________

NAME
       split - Split a string into a proper Tcl list

SYNOPSIS
       split string ?splitChars?
____________________________________________________________________________________________________________


DESCRIPTION
       Returns  a  list  created  by  splitting string at each character that is in the splitChars argument.
       Each element of the result list will consist of the characters from string that lie between instances
       of  the  characters in splitChars.  Empty list elements will be generated if string contains adjacent
       characters in splitChars, or if the  first  or  last  character  of  string  is  in  splitChars.   If
       splitChars  is an empty string then each character of string becomes a separate element of the result
       list.  SplitChars defaults to the standard white-space characters.  For example,
              split "comp.unix.misc" .
       returns "comp unix misc" and
              split "Hello world" {}
       returns "H e l l o { } w o r l d".


SEE ALSO
       join(n), list(n), string(n)


KEYWORDS
       list, split, string



Tcl                                                                                                 split(n)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.