| Copyright ©1998 by AAA+ Software Forschungs- und Entwicklungs Ges.m.b.H. All Rights Reserved. Revision 1.09 - March 12, 1998. |
| Tcl 8.0 Manual Pages |
| Table of Contents |
| Introduction Control Flow Event Handling File Handling Libraries List Processing Mathematics Processes Safe Tcl Sockets Status String Manipulation Time and Date Variables |
| Introduction |
| About Tcl commands Tcl 8.0 syntax |
| Control Flow |
| break - Abort looping command case - Evaluate one of several scripts, depending on a given value catch - Evaluate script and trap exceptional returns continue - Skip to the next iteration of a loop error - Generate an error eval - Evaluate a Tcl script exit - End the application for - ``For'' loop foreach - Iterate over all elements in one or more lists if - Execute scripts conditionally interp - Create and manipulate Tcl interpreters proc - Create a Tcl procedure rename - Rename or delete a command return - Return from a procedure source - Evaluate a file or resource as a Tcl script switch - Evaluate one of several scripts, depending on a given value uplevel - Execute a script in a different stack frame while - Execute script repeatedly as long as a condition is met |
| Event Handling |
| after - Execute a command after a time delay bgerror - Command invoked to process background errors fileevent - Execute a script when a channel becomes readable or writable update - Process pending events and idle callbacks vwait - Process events until a variable is written |
| File Handling |
| close - Close an open channel eof - Check for end of file condition on channel fblocked - Test whether the last input operation exhausted all available input fconfigure - Set and get options on a channel fcopy - Copy data from one channel to another file - Manipulate file names and attributes filename - File name conventions supported by Tcl commands flush - Flush buffered output for a channel gets - Read a line from a channel glob - Return names of files that match patterns open - Open a file-based or command pipeline channel puts - Write to a channel read - Read from a channel resource - Manipulate Macintosh resources seek - Change the access position for an open channel tell - Return current access position for an open channel |
| Libraries |
| Standard library of Tcl procedures HTTP library Windows Registry library load - Load machine code and initialize new commands package - Facilities for package loading and version control pkg_mkIndex - Build an index for automatic loading of packages unknown - Handle attempts to use non-existent commands |
| List Processing |
| concat - Join lists together join - Create a string by joining together list elements lappend - Append list elements onto a variable lindex - Retrieve an element from a list linsert - Insert elements into a list list - Create a list llength - Count the number of elements in a list lrange - Return one or more adjacent elements from a list lreplace - Replace elements in a list with new elements lsearch - See if a list contains a particular element lsort - Sort the elements of a list split - Split a string into a proper Tcl list |
| Mathematics |
| expr - Evaluate an expression incr - Increment the value of a variable |
| Processes |
| exec - Invoke subprocess(es) pid - Retrieve process id(s) |
| Safe Tcl |
| Safe Base - A mechanism for creating and manipulating safe interpreters |
| Sockets |
| socket - Open a TCP network connection |
| Status |
| cd - Change working directory history - Manipulate the history list info - Return information about the state of the Tcl interpreter pwd - Return the current working directory |
| String Manipulation |
| append - Append to variable binary - Insert and extract fields from binary strings format - Format a string in the style of sprintf regexp - Match a regular expression against a string regsub - Perform substitutions based on regular expression pattern matching scan - Parse string using conversion specifiers in the style of sscanf string - Manipulate strings subst - Perform backslash, command, and variable substitutions |
| Time and Date |
| clock - Obtain and manipulate time time - Time the execution of a script |
| Variables |
| Global Standard Variables array - Manipulate array variables global - Access global variables namespace - create and manipulate contexts for commands and variables set - Read and write variables trace - Monitor variable accesses unset - Delete variables upvar - Create link to variable in a different stack frame variable - create and initialize a namespace variable |
| Back to Main Index |