next up previous
Next: Creating Tcl Extensions Up: Tcl: A Generic Previous: Lists

Additional Tcl Details

String Manipulation:
    regexp    format    split     string
    regsub    scan      join
File I/O:
    open      gets      seek      flush     glob
    close     read      tell      cd
    puts      source    eof       pwd
Error Handling:
    catch     error     errInfo
    exec grep foo << $input | wc
Associative Arrays:
    set x(fred) 44
    set x(2) [expr $x(fred) + 6]
Variable Scoping:
	global    uplevel   upvar
Access to Tcl internals:
	info      rename    trace

More on substitutions:

Commands and Lists:

CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab