Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tcl outpu, please urgent help

Status
Not open for further replies.

kamilhus

Technical User
Jan 9, 2007
3
US
hello,

I'd like to write some special characters to an output

This is the output I want: $a "b"
Here the problem is I need the symbols $ and " to appear in my output. Please help me in doing so, if I do for example puts "$a" it will tell me that I've do declare a, since it understands it as "value of a"

Thanks
Kamil
 
Hi

Tcl documentation said:
[4] Double quotes.
[gray](...)[/gray]Command substitution, variable substitution, and backslash substitution are performed on the characters between the quotes as described below.[gray](...)[/gray]

[5] Braces.
[gray](...)[/gray]No substitutions are performed on the characters between the braces except for backslash-newline substitutions described below, nor do semi-colons, newlines, close brackets, or white space receive any special interpretation.[gray](...)[/gray]
Code:
puts {$a "b"}

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top