Table of Contents
A tcl command is defined as a list of strings in which the first string is a command or proc. Any string or list which meets this criteria can be evaluated and executed.
The eval command will evaluate a list of strings as though they were commands typed at the % prompt or sourced from a file. The eval command normally returns the final value of the commands being evaluated. If the commands being evaluated throw an error (for example, if there is a syntax error in one of the strings), then eval will will throw an error.
Note that either concat or list may be used to create the command string, but that these two commands will create slightly different command strings.
Evaluates arg1 argn args tcl_Eval to evaluate and execute.
Eval returns the result (or error code) of that evaluation.