From: Mike Moore Date: 2007-04-12T07:23:45+09:00 Subject: Re: equivalent of perl qw operator ------=_Part_21402_29375704.1176330223380 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/11/07, Vlad Ciubotariu wrote: > > I have a feeling I've seen it in the pickaxe book but I can't seem to find > it again. > > Is there a way to write this differently? > > array = [ 'element1', 'element2', ...] > > In perl I could do > > @array = qw( element1 element2 ...) > > without the quotes. irb(main):001:0> @array = %w{element1 element2} => ["element1", "element2"] thanks > vlad > > ------=_Part_21402_29375704.1176330223380--