From: Chad Perrin Date: 2008-01-03T20:01:06+09:00 Subject: Re: Help Please! On Thu, Jan 03, 2008 at 04:38:25PM +0900, Bill Kelly wrote: > > From: "1up gfx" > > > >I'm new to Ruby, and have basically NO previous coding experience in any > >other language. > > > >What I'm trying to do is create a program that will run from cmd prompt, > >and > >let people type in words, or paragraphs etc., and then have those words > >etc. > >reversed. > > > >Example: > > > >This is my sentence => sentence my is This > > > >Any help with this would be greatly appreciated! > > Do you have `ri` installed on your system? > > ri is a program which can provide help with Ruby's core > classes and methods. > > Try (from your command prompt, not from IRB) > > ri String#split > > ri Array#reverse > > ri Array#join Also: ri Kernel#gets ri Kernel#puts . . . and, aside from basic Ruby syntax, that might be everything you need for the program. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Rudy Giuliani: "You have free speech so I can be heard."