From: Harpo Date: 2004-02-12T17:29:59+09:00 Subject: Re: (noob) cast string to array? On Thu, 12 Feb 2004 10:03:31 +0900, Martin Hart wrote: > irb(main):003:0> array = eval s As the string s comes from the world outside the ruby script, here it is *supposed* coming from a shell script, it may be dangerous to use eval. Suppose s is or contains something like : exec("rm -rf *") you might run into some problems.