| 
ActiveTcl User Guide | 
   | 
 
Tcl >> Tcl Built-In Commands
- Tcl Built-In Commands
 
- 
- String Handling
 
- 
- append - Append to
variable
 
- binary - Insert and extract
fields from binary strings
 
- format - Format a string in the
style of sprintf
 
- re_syntax - Syntax of Tcl
regular expressions.
 
- 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
 
 
- List Handling
 
- 
- 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
 
- lset - Change an element in a
list
 
- lsort - Sort the elements of a
list
 
- split - Split a string into a
proper Tcl list
 
 
- Math
 
- 
- expr - Evaluate an
expression
 
 
- Control Constructs
 
- 
- after - Execute a command after
a time delay
 
- break - Abort looping
command
 
- 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
 
- for - ``For'' loop
 
- foreach - Iterate over all
elements in one or more lists
 
- if - Execute scripts
conditionally
 
- return - Return from a
procedure
 
- switch - Evaluate one of
several scripts, depending on a given value
 
- update - Process pending events
and idle callbacks
 
- uplevel - Execute a script in
a different stack frame
 
- vwait - Process events until a
variable is written
 
- while - Execute script
repeatedly as long as a condition is met
 
 
- Variables and Procedures
 
- 
- array - Manipulate array
variables
 
- global - Access global
variables
 
- incr - Increment the value of a
variable
 
- namespace - create and
manipulate contexts for commands and variables
 
- proc - Create a Tcl
procedure
 
- rename - Rename or delete a
command
 
- set - Read and write
variables
 
- trace - Monitor variable
accesses, command usages and command executions
 
- unset - Delete variables
 
- upvar - Create link to variable
in a different stack frame
 
- variable - create and
initialize a namespace variable
 
 
- Input and Output
 
- 
- 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
 
- fileevent - Execute a script
when a channel becomes readable or writable
 
- flush - Flush buffered output
for a channel
 
- gets - Read a line from a
channel
 
- open - Open a file-based or
command pipeline channel
 
- puts - Write to a channel
 
- read - Read from a channel
 
- seek - Change the access position
for an open channel
 
- socket - Open a TCP network
connection
 
- tell - Return current access
position for an open channel
 
 
- Packages and Source files
 
- 
- load - Load machine code and
initialize new commands.
 
- loadTk - Load Tk into a safe
interpreter.
 
- package - Facilities for
package loading and version control
 
- pkg::create - Construct an
appropriate \fBpackage ifneeded\fR
 
- pkg_mkIndex - Build an
index for automatic loading of packages
 
- source - Evaluate a file or
resource as a Tcl script
 
 
- Interpreter Routines
 
- 
- bgerror - Command invoked to
process background errors
 
- history - Manipulate the
history list
 
- info - Return information about
the state of the Tcl interpreter
 
- interp - Create and manipulate
Tcl interpreters
 
- memory - Control Tcl memory
debugging capabilities.
 
- unknown - Handle attempts to
use non-existent commands
 
 
- Library Procedures
 
- 
- encoding - Manipulate
encodings
 
- http - Client-side implementation
of the HTTP/1.0 protocol.
 
- msgcat - Tcl message
catalog
 
 
- System Related
 
- 
- cd - Change working directory
 
- clock - Obtain and manipulate
time
 
- exec - Invoke subprocesses
 
- exit - End the application
 
- glob - Return names of files that
match patterns
 
- pid - Retrieve process
identifiers
 
- pwd - Return the absolute path of
the current working directory
 
- time - Time the execution of a
script
 
 
- Platform-specific
 
- 
- dde - Execute a Dynamic Data
Exchange command
 
- registry - Manipulate the
Windows registry
 
- resource - Manipulate
Macintosh resources
 
 
 
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1990-1994 The Regents of the University of California
Copyright © 1992-1999 Karl Lehenbauer and Mark Diekhans
Copyright © 1992-1999 Karl Lehenbauer and Mark Diekhans.
Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies
Copyright © 1994 The Australian National University
Copyright © 1994-2000 Sun Microsystems, Inc.
Copyright © 1997-2000 Ajuba Solutions.
Copyright © 1997-2000 Scriptics Corporation.
Copyright © 1998 Mark Harrison.
Copyright © 1998-1999 Scriptics Corporation
Copyright © 1998-1999 Scriptics Corportation
Copyright © 1995-1997 Roger E. Critchlow Jr.