Having problem with SPLIT



I am trying to embed a tab character into a line that gets emailed to a
report generator. Upon receipt of the email, I go through each line of it
with split since in the past emails have arrived with unbalanced braces
which then caused problems.

The line I send is, \tHeader with a tab. After the split I get, {\tHeader}
with a tab. Another line sent without a tab, Header Without a tab, is
unaffected. What I want is the final line that gets passed to "puts
$reportFile" to be "\tHeader with a tab", but I cannot get rid of the curly
braces. I know this is my problem but I have run out of ideas.

Thanks.


.



Relevant Pages

  • Re: Having problem with SPLIT
    ... report generator. ... I go through each line of it with split since in the past emails have arrived with unbalanced braces which then caused problems. ... Another line sent without a tab, Header Without a tab, is unaffected. ...
    (comp.lang.tcl)
  • Re: Having problem with SPLIT
    ... to a report generator. ... I go through each line of it with split since in the past emails have arrived with unbalanced braces which then caused problems. ... \tHeader with a tab. ... % puts $line with a tab ...
    (comp.lang.tcl)