%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.

----- Original Message ----- 
From: "Daniel Carrera" <dcarrera / math.umd.edu>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, May 06, 2003 9:21 AM
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
>
>