Reputation: 107
Each tcl script line is one command. Is there any kind of tcl-newline-script-string, so that putting it to a tcl script line, the tcl interpreter will treat the tcl script line as two commands?
Example, if ^ is such tcl-newline-script-string, for a tcl script line:
puts "a" ^ puts "b"
I expect the tcl interpreter will treat it as
puts "a"
puts "b"
I am looking for such tcl-newline-script-string.
Upvotes: 3
Views: 2528
Reputation: 71538
I believe you are looking for semicolon:
puts "a"; puts "b"
The semicolon basically tells the interpreter that the command has reached an end, so you can start another one.
Upvotes: 6