title: Creating arrays in Lua from list returned by gmatch
body: <p>I am programming in Lua and so far I have this.</p>
  
  <pre><code>S=tostring(M[i].AllSegmentsList)      --it returns "MSH, PID"
  for i in string.gmatch(S, ",") do      --I have  ", " as delimiter 
    t= {}        --Now, I want the values returned by delimiter to be added into an array.
  end
  </code></pre>
  
  <p>How can I do that.</p>