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

<html><br/></html>


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: by 127.0.0.1
 
 
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0