Re: I don't want the backslash to escape ...
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: I don't want the backslash to escape ...

From: Darren New <dnew@san.rr.com>
Date: Thu May 26 2005 - 18:24:15 CEST

cheizer wrote:
> thanks, for the info on the result explanation, I dd not realize that
> the backslash was invisable.

The backslashisn't "invisible". The "" interpret the backslash inside.
Just like in C, a '\n' is a newline character with no backslash inside
it, in Tcl a "\ " is just a space. If you want to insert a backslash
into a string delimited with double-quotes, use \\, just like in C.

-- 
   Darren New / San Diego, CA, USA (PST)
     The samba was clearly inspired
     by the margarita.
Received on Thu Sep 29 14:19:23 2005