title: Using 'dict set' command with multiple keys and values in Tcl
body: <p>I am trying to play around with dictionaries and I cam across <code>dict set</code> command. Using this command, I able to set new value to existing key. </p>
  
  <p>When I tried to set the values for more than one keys, then I am getting <code>"missing value to go with key"</code></p>
  
  <p>I have tried the commands in 2 ways,</p>
  
  <pre><code>#keys list and then values list
  dict set userinfo name age VIGNESH 23
  #key and value pair
  dict set userinfo name VIGNESH age 23
  </code></pre>
  
  <p>I have looked into the man page of <code>dict set</code> and found the following </p>
  
  <pre><code>dict set dictionaryVariable key ?key ...? value
      This operation takes the name of a variable containing a dictionary value and places an updated dictionary value in that variable containing a mapping from the given key to the given value. When multiple keys are present, this operation creates or updates a chain of nested dictionaries. 
  </code></pre>
  
  <p>This is what I am trying</p>
  
  <pre><code>% set userinfo { name DINESH age 24 dob {16/05/1990} state Chennai }  
   name DINESH age 24 dob {16/05/1990} state Chennai 
  % dict get $userinfo
  name DINESH age 24 dob 16/05/1990 state Chennai
  % dict set userinfo state Madurai
  name DINESH age 24 dob 16/05/1990 state Madurai
  % dict get $userinfo
  name DINESH age 24 dob 16/05/1990 state Madurai
  % dict set userinfo name age VIGNESH 23
  missing value to go with key
  % dict set userinfo name VIGNESH age 23
  missing value to go with key
  % 
  </code></pre>