I'd like to do the following:

  cmd = [ '/bin/ls', ARGV ]
  exec(cmd)

However, this doesn't work, because the `exec' method cannot take an
array as an argument.

I know that the following is possible:

  cmd = [ '/bin/ls', ARGV ]
  exec(cmd.join(' '))

However, this causes the command line passed to `exec' to be fed
to the shell, which I do not want.

Is there any way to make ruby construct a proper argument list for a
method from an array?
  
Thanks in advance.

-- 
 Lloyd Zusman
 ljz / asfast.com