1mNAME0m
       set - Read and write variables

1mSYNOPSIS0m
       1mset 4m22mvarName24m ?4mvalue24m?


1mDESCRIPTION0m
       Returns the value of variable 4mvarName24m.  If 4mvalue24m is specified, then set
       the value of 4mvarName24m to 4mvalue24m, creating a new variable if  one  doesn't
       already  exist,  and  return  its  value.   If 4mvarName24m contains an open
       parenthesis and ends with a close parenthesis, then  it  refers  to  an
       array  element:   the  characters before the first open parenthesis are
       the name of the array, and the characters between the  parentheses  are
       the index within the array.  Otherwise 4mvarName24m refers to a scalar vari-
       able.  Normally, 4mvarName24m is unqualified (does not include the names  of
       any  containing  namespaces), and the variable of that name in the cur-
       rent namespace is read or written.  If 4mvarName24m includes namespace qual-
       ifiers  (in the array name if it refers to an array element), the vari-
       able in the specified namespace is read or written.

       If no procedure is active, then 4mvarName24m refers to a namespace  variable
       (global variable if the current namespace is the global namespace).  If
       a procedure is active, then 4mvarName24m refers  to  a  parameter  or  local
       variable  of  the  procedure  unless  the 1mglobal 22mcommand was invoked to
       declare 4mvarName24m to be global, or unless a 1mvariable 22mcommand was  invoked
       to declare 4mvarName24m to be a namespace variable.


1mSEE ALSO0m
       expr(n), proc(n), trace(n), unset(n)


1mKEYWORDS0m
