From: Ross Bamford Date: 2006-04-24T10:20:06+09:00 Subject: Re: nuby: %w to understand quotes On Mon, 2006-04-24 at 10:03 +0900, Pe単a wrote: > David Corbin [mailto:dcorbin@machturtle.com] : > > # But why? %w is intended as a shortcut when everthing is a > # single word. For > # anything else, use quotes. > > yes, you're right. maybe, i was looking for a shortcut on word or "phrases of words" :) Perhaps you are looking for shellwords? require 'shellwords' Shellwords.shellwords %{this is "just a" test} # => ["this", "is", "just a", "test"] -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk