Re: Having problem with SPLIT



Earl Grieda wrote:
"miguel sofer" <msofer@xxxxxxxxxxxx> wrote in message
news:d9vchd$ghe$1@xxxxxxxxxxxxxxxxxxxxx
... snip

Another one is
  % puts [join $line]
  \tHeader with a tab



I had tried join but ended up with "{     Header} with a tab".  After some
work I got it to work by using append versus lappend.  Of course then I
needed to add a space between each word. :)

Thanks all.



All of that means you are doing some things fundamentally wrong. There is generally no need to add a space between words or using append rather than lappend if you handle the data properly. If you want more help we're all glad to provide it, but if you're happy with what you have maybe that's good enough for the job at hand.
.




Relevant Pages

  • man page layout standard/spec?
    ... I find the search function of little use because it makes no distinction between the search term just existing in the text of a page and the word being a significant "key word" ... e.g. the entry for "append" lists "append, lappend, open, clipboard, DString, ListObj, SetResult, StringObj, Clipboard". ... It should not have "lappend" as the only occurrence of "append" notes that "lappend" has similarities to ...
    (comp.lang.tcl)
  • Re: man page layout standard/spec?
    ... uses .chm file. ... e.g. the entry for "append" lists ... It should not have "lappend" as the only ... not sure if it would be a actual search tool or an indexing tool or ???. ...
    (comp.lang.tcl)
  • Re: How to put comment begin of line in file
    ... lappend content $line ... You want a normal "append" here, not lappend: ... puts -nonewline $fd $content ... file rename -force data.dat.new data.dat ...
    (comp.lang.tcl)
  • Re: Newbie looking for information on lists of lists
    ... Making a new command like lappend you have to decide whether you want ... to supply multiple index arguments (like the new lindex) or multiple ... The list-of-indices identifies which sub-list to append onto. ...
    (comp.lang.tcl)
  • Reordering part of a list with VBA
    ... I have a list on a hidden tab (let's be adventurous and call it the ... bottom of the list, which of course means it now appears on the drop- ... Sooooo, how do I take a list, append a record to it, and then resort ...
    (microsoft.public.excel.worksheet.functions)