NAME
CommaSeparatedStringToList — Take string, split on commas, trim spaces, return Tcl list.
SYNOPSIS
CommaSeparatedStringToList StringVariable
DESCRIPTION
Return Value
A Tcl list with each value from the original string.
Arguments
StringVariableA comma separated string. Can be either a value or @VarName (will upvar and read/write).
More Info
This command is like split except it will also remove the separating whitespace.

Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.


For information regarding exceptions / errors, see here.
EXAMPLES
% set String "one,two, three"
one,two, three
% CommaSeparatedStringToList $String
one two three

% set String "one,two, three"
one,two, three
% CommaSeparatedStringToList @String
one two three
% puts $String
one two three
SEE ALSO
SplitAndTrim
KEYWORDS
conversion, list, string, text, transform