il Tue, 2 Sep 2003 22:59:33 +0900, Michael Campbell
<michael_s_campbell / yahoo.com> ha scritto::

>(I think...)
>
>Having a brain-fade today.  Is there a simple ruby equivalent to
>perl's qw() construct?  I want, in order to save typing, to convert a
>list of non-quoted words like so:
>
>foo bar baz...
>
>into an array of quoted strings: ["foo", "bar", "baz", ...]
>
>Perl does this by:  @list = qw(foo bar baz ...);


this?
>> a=%w( foo bar baz)
=> ["foo", "bar", "baz"]