From: ahoward Date: 2003-05-07T03:49:36+09:00 Subject: Re: %w(foo) v.s. ['foo'] On Wed, 7 May 2003, Yukihiro Matsumoto wrote: > Hi, > > In message "%w(foo) v.s. ['foo']" > on 03/05/07, ahoward writes: > > |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]} > > No idea. Could you show us problem reproducing code snippet? this is the offending script - i'm sure the problem must be elsewhere, i just can't see it http://eli.fsl.noaa.gov/ruby/eg/index_cgi.html line 45, 46 -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================