Re: [newbie]substitution - square brackets
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: [newbie]substitution - square brackets

From: Helmut Giese <hgiese@ratiosoft.com>
Date: Mon Mar 13 2006 - 18:03:18 CET

On 13 Mar 2006 08:43:04 -0800, getshorter@gmail.com wrote:

>I am trying to learn Tcl with the help of TclTutor. I seemed to
>understand substitutions, but, when playing around with the examples, I
>tried out this:
>
>set foo [puts test]
>
>and I did not understand what the interpreter returned (a void string).
>I would expect to see the variable $foo set to "test".
>
>As you can you guess, I'm a very beginner.
>Hope you can help me,

Have a look at the thread 'Bryan Oakley help' from March 8th - it
talks essentially about this exact question.
HTH
Helmut Giese
Received on Sun Apr 30 02:31:07 2006