"yahalom emet" <[EMAIL PROTECTED]> writes:
> how do you make this kind of hputs efficient:
>
> hputs "<table bordercolor=\"$color\" BORDER=\"1\" CELLSPACING=\"0\"
>CELLPADDING=\"0\">"
>
> all this protection on questes is tedious.
>
> can threre be a mechanism of automatic quetation?
Well, the easiest thing is to do something like this:
puts [format {<table bordercolor="%s" BORDER="1" CELLSPACING="0" CELLPADDING="0">}
$color]
Although I suppose you could also do something with 'subst':
puts [subst {<table bordercolor="$color" BORDER="1" CELLSPACING="0" CELLPADDING="0">}]
but in that case, you have to worry about commands and backslashes if
you don't use the -nocommands and -nobackslashes arguments.
Does that help?
--
David N. Welton
Consulting: http://www.dedasys.com/
Free Software: http://people.debian.org/~davidw/
Apache Tcl: http://tcl.apache.org/
Personal: http://www.efn.org/~davidw/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]