From: 12 34 Date: 2007-07-24T14:15:06+09:00 Subject: Re: Calling a Perl script from Ruby Suraj Kurapati wrote: > 12 34 wrote: > > class String > # Transforms this string into an escaped POSIX shell argument. > def shell_escape > inspect.gsub(/\\(\d{3})/) {$1.to_i(8).chr} > end > end > >> Open to suggestions on getting a string list >> from an array with double quotes around each item and a space between >> each item. > > your_array.map {|s| s.shell_escape}.join(' ') Thank you. Much more Rubyesh. -- Posted via http://www.ruby-forum.com/.