By the way, I just verified in IRB that %(year month day) is actually "year month day". It is quite surprising to me. Gennady. ----- Original Message ----- From: "ahoward" <ahoward / fsl.noaa.gov> Newsgroups: comp.lang.ruby To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Tuesday, May 06, 2003 11:49 AM 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 <ahoward / fsl.noaa.gov> 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 > ==================================== > >