From: Daniel Carrera Date: 2003-05-07T01:21:46+09:00 Subject: Re: %w(foo) v.s. ['foo'] - year, month, day = %w(year month day).map{|k| cgi[k]} + year, month, day = %w{year month day}.map{|k| cgi[k]} On Wed, May 07, 2003 at 01:06:54AM +0900, ahoward wrote: > > > rubyists- > > 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]} > > > this first case, with identical form data, results in expected behavior, the > second results in all values being nil. > > -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 > ==================================== > -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137