From: 7stud -- Date: 2009-02-19T00:08:42+09:00 Subject: Re: Newbie - several array questions Heesob Park wrote: > 2009/2/18 7stud -- : >> resultB << "|" << item >> end >> resultB << "|" >> > You can also write it using inject like this: > arr = arr2.inject(["|"]){|r,e|r< As long as you realize that inject() is always the most inefficient solution possible. -- Posted via http://www.ruby-forum.com/.