From: Gennady Date: 2003-05-07T03:59:48+09:00 Subject: Re: %w(foo) v.s. ['foo'] Your script has "%(year month day)" instead of "%w(year month day)". I presume 'w' was somehow swallowed when rendering to html, and it IS actually present in the script you test. Is it? Gennady. ----- Original Message ----- From: "ahoward" Newsgroups: comp.lang.ruby To: "ruby-talk ML" 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 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 > ==================================== > >