Re: Concating strings



Lawrence Chitty <lawrence.chitty@xxxxxxxxxxxx> wrote:
# SM Ryan wrote:
# > "Silas Justiniano" <silasju@xxxxxxxxx> wrote:
# > # Hello people!
# > #
# > # I'learning TCL now. My first question is... The only way to concate
# > # strings is using append? See:
# >
# > PHP $var .= "substitutable string"
# > Tcl append var "substitutable string"
# >
# > PHP $var .= 'nonsubstitutable string'
# > Tcl append var {nonsubstitutable string}
# >
# > PHP "string1"."string2"
# > Tcl "string1string2"
# >
# > PHP $var . ' string2'
# > Tcl [concat $var {string2}]
# >
# > PHP $var . 'string2'
# > Tcl $var[concat {string2}]
# >
# > PHP "$var string2"
# > Tcl "$var string2"
# >
#
# PHP $var . 'string2'
# Tcl ${var}string2

You have to be careful becuase PHP '-strings-' are like Tcl {-strings-}.
PHP and Tcl both allow some kinds of substitution in "-strings-".

--
SM Ryan http://www.rawbw.com/~wyrmwif/
So basically, you just trace.
.



Relevant Pages

  • Re: core dump on writing to pipe
    ... Perhaps gdb or sdb or dbg or dbx or mky mus. ... SM Ryan http://www.rawbw.com/~wyrmwif/ ... So basically, you just trace. ... Prev by Date: ...
    (comp.lang.c)
  • Re: append and read-traces
    ... % trace variable x r handler;# ... then scripts that rely on "append" ... then it's a design bug. ... I vote for reopening & fixing that bug. ...
    (comp.lang.tcl)
  • Re: Trace
    ... As I study others' HTA's I keep seeing TRACE ... open and IE window into which you can append text. ... autoscroll on & off so you can manually scroll up and down while the script ...
    (microsoft.public.scripting.vbscript)
  • Tracing records for application installed in XP
    ... The question is about if there is a way or utility that could trace the ... records of applications installed in a Windows XP system, ... The question is from a technical support that he wants to know if the user ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • Re: Insert a column in a datatable?
    ... W.G. Ryan, MVP ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)