--- Scott Laplante <[EMAIL PROTECTED]> wrote:
> Is there a way in tcl to puts(?) a string, but
> instead of intrepreting,
> showing all special characters?
>
> For example, this is what i have:
>
> % set thing "hi
> bye"
> hi
> bye
> % puts $thing
> hi
> bye
> %
>
> and this is what i'd want:
>
> % set thing "hi
> bye"
> hi
> bye
> % puts -option? $thing
> hi\nbye
> %

string map {\n \\n} $thing


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to