1mNAME0m
       eval - Evaluate a Tcl script

1mSYNOPSIS0m
       1meval 4m22marg24m ?4marg24m 4m...24m?


1mDESCRIPTION0m
       1mEval  22mtakes one or more arguments, which together comprise a Tcl script
       containing one or more commands.  1mEval 22mconcatenates all  its  arguments
       in  the  same  fashion  as  the 1mconcat 22mcommand, passes the concatenated
       string to the Tcl interpreter recursively, and returns  the  result  of
       that  evaluation  (or  any  error generated by it).  Note that the 1mlist0m
       command quotes sequences of words in such a way that they are not  fur-
       ther expanded by the 1meval 22mcommand.

1mEXAMPLE0m
       This  procedure acts in a way that is analogous to the 1mlappend 22mcommand,
       except it inserts the argument values at the start of the list  in  the
       variable:
              proc lprepend {varName args} {
                 upvar 1 $varName var
                 # Ensure that the variable exists and contains a list
                 lappend var
                 # Now we insert all the arguments in one go
                 set var [1meval 22m[list linsert $var 0] $args]
              }


1mKEYWORDS0m
       concatenate, evaluate, script


1mSEE ALSO0m
