From: Yasushi Shoji Date: 2000-12-19T19:57:09+09:00 Subject: [ruby-talk:7676] %w question At Tue, 19 Dec 2000 19:40:02 +0900, Conrad Schneiker wrote: > On page 10 of PR [Programming Ruby] the %w shortcut is shown creating an > array with curly braces (a=%w{a d c f}) which works. The same construction > also works with square brackets [which] seems more consistant with arrays. > This is a bit confusing since it isn't mentioned in the text. see p202 "General Delimited Input" It can be any char. e.g a = %w- a d c f - -- yashi