From: 7stud -- Date: 2009-06-04T01:45:35+09:00 Subject: Re: assign the array returned by String.split to a variable > assign the array returned by String.split to a variable str = "hello,world" arr = str.split(",") p arr --output:-- ["hello", "world"] -- Posted via http://www.ruby-forum.com/.