Getting started with Tcl: example 3

This page is part of the Airplug documentation related to Tcl/Tk.
Back to the Tcl/Tk documentation page / Back to the Airplug documentation page

Using substitutions, " vs. {

Script

#!/usr/bin/tclsh
# substitution
 
set Number 5
set String "I love Paris"

# Printing on the standard output.
puts stdout "Number = $Number"
puts stdout "String = $String"
puts stdout {String = $String}

Output

Number = 5
String = I love Paris
String = $String

<br/>


This page is part of the Airplug documentation related to Tcl/Tk.
Back to the Tcl/Tk documentation page / Back to the Airplug documentation page

 
Back to top
en/doc/pub/tcltk/example-03.txt · Last modified: 2017/04/05 16:00 (external edit)
 
 
Driven by DokuWiki