From: gabriele renzi Date: 2003-09-03T04:33:11+09:00 Subject: Re: Simple question(s) il Tue, 2 Sep 2003 22:59:33 +0900, Michael Campbell 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"]