Re: variable replacement in string [message #178027 is a reply to message #178013] |
Thu, 10 May 2012 20:50 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
M. Strobel wrote:
> Am 10.05.2012 15:11, schrieb The Natural Philosopher:
>
>> if you want to program in tcl., i suggest you use tcl.
>>
>> your example
>> $t = ' - solved - ';
>> $msg = 'The problem is $t';
>>
>> should be
>> $t = ' - solved - ';
>> $msg = 'The problem is'.$t;
>> echo($msg);
>
> You cannot miss something you do not know it exists.
>
Of course you can. Don't be silly.
I've missed loads of things that I didnt know about.
Like the flight to Chicago. I've missed every single flight to chicago,
ever. Most before I even knew there was one. :-)
> /Str.
>
--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
|
|
|