Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Whitespace in Tcl

tcl

#!/usr/bin/tclsh

puts [expr 3 + 2] ;# print sum of the 3 and 2

Inline comment

tcl

#!/usr/bin/tclsh

puts "Hello World!" ;# my first print in Tcl program

Multiline comment

tcl

#!/usr/bin/tclsh

if 0 {
   my first program in Tcl program
   Its very simple
}
puts "Hello World!" 

Tcl Comments

tcl

#!/usr/bin/tclsh

# my first program in Tcl
puts "Hello World!" 

Tcl First Program

tcl

#!/usr/bin/tclsh

puts "Hello, World!"

Tcl Patch Level

tcl

#!/usr/bin/tclsh

puts $tcl_patchLevel

Tcl Precision

tcl

#!/usr/bin/tclsh

puts $tcl_precision

Tcl Startup File

tcl

#!/usr/bin/tclsh

puts $tcl_rcFileName

Tcl Library

tcl

#!/usr/bin/tclsh

puts $tcl_library

Tcl Package Path

tcl

#!/usr/bin/tclsh

puts $tcl_pkgPath

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.