Puts
is the output command for text.
A single unit of text after the puts
command will be
printed to the standard output device (in this case, the lower window).
The default behavior is to append a newline to the string.
Strings of multiple words must be grouped with quotes or braces. The effect of quotes and braces isn't quite identical. See the next lesson for the first intro to Quoting Hell.
See later lessons on puts
for the options to puts
.
A command in Tcl is a list of words terminated by a newline or semicolon.
Comments in Tcl have a #
in the position where a command could be.
In order to put a comment on a line after a command, it must be
preceded by a semi-colon, to terminate the command.
See File I/O if you are interested in sending output to a file.
See format if you want to use formatted output.