From: Daniel Carrera Date: 2003-05-07T01:35:50+09:00 Subject: Re: %w(foo) v.s. ['foo'] On Wed, May 07, 2003 at 01:32:58AM +0900, Gennady wrote: > %w{year month day} and %w(year month day) are the same thing, you can use > even %w%year month day% if you want. > > Gennady. I didn't know that. Ruby rocks. But in that case, I can't imagine what the problem with this code could be. > > > any idea why this: > > > > > > year, month, day = ['year','month','day'].map{|k| cgi[k]} > > > > > > should yeild different results than this: > > > > > > year, month, day = %w(year month day).map{|k| cgi[k]} -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137