title: How do I pass an array in ARGV command line arguments?
body: <p>I have the following:</p>
  
  <p>=== My program test.rb</p>
  
  <pre><code>def test (app, download, launch )
    for i in 0..(app.length - 1)do
      #DO SOMETHING HERE WITH THIS
      p  app[i].to_s + download[i].to_s + launch[i].to_s
    end
  end
  test (ARGV[0].split(//) , ARGV[2].split(//) ,ARGV[1].split(//))
  </code></pre>
  
  <p>=== other program "other.rb" that parses and executes test.rb</p>
  
  <pre><code>app = ["fda","asdf"]
  down =  ["ok","nok"]
  la = ["ok","ok"]
  system("ruby test.rb #{app} #{down} #{la}")
  </code></pre>
  
  <p>I would like to print it as something like this:</p>
  
  <pre><code>fda ok ok
  asdf no nok
  </code></pre>
  
  <p>However it is printed like this:</p>
  
  <pre><code>foo 
  dkk 
  ano
  aok
  sk
  d
  f
  </code></pre>
  
  <p>How can I pass arrays to the app correctly?</p>