title: Inserting an element in TCL
body: <p>I am new to TCL scripting. I am trying to insert an element (in a list) in the 5th position. This list has got no values (empty list) initially.</p>
  
  <p>I tried with "linsert" command, but the problem is it cannot insert an element at the position specified by me. Following is the code snippet,</p>
  
  <pre><code>set newlist {}
  set newlist [linsert $newlist 5 value_to_be_inserted]
  </code></pre>
  
  <p>This code doesnot inserts the element in the 5th position, rather it inserts at the beginning in the 0th element. How can i achieve this task.</p>
  
  <p>Any help will be really good for my understanding.</p>