From: Chad Perrin Date: 2007-04-12T07:30:05+09:00 Subject: Re: equivalent of perl qw operator On Thu, Apr 12, 2007 at 07:19:28AM +0900, Augie De Blieck Jr. wrote: > Page 15 of the Pick Axe book, as a matter of fact. It's %w{ } Also . . . if you want to get string interpolation as though you used double quotes around your list elements, rather than single quotes, you can capitalize the W in that. In other words: irb(main):001:0> foo = 'one' => "one" irb(main):002:0> bar = %w{ #{foo} two } => ["\#{foo}", "two"] irb(main):003:0> bar = %W{ #{foo} two } => ["one", "two"] -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Amazon.com interview candidate: "When C++ is your hammer, everything starts to look like your thumb."