From: 1up gfx Date: 2008-01-03T16:54:31+09:00 Subject: Re: Help Please! ------=_Part_456_31035544.1199346876512 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline W On Jan 3, 2008 12:48 AM, Wes Bailey wrote: > On Jan 2, 2008, at 11:28 PM, 1up gfx wrote: > > > 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! > > ~> ruby -e 'ARGF.each { |l| puts l.split.reverse.join( " " ) }' > this is my sentence > sentence my is this > > Its a great answer to your assignment if you can explain what all is > happening. Good Luck! > > Wes > > Well, It's not really an assignment. I'm getting my cousin (who is a Java > programmer) to help me out with programming. He's basically just giving me > little tasks to do so that I become more familiar with programming. But, > since I don't really have any previous experience, I don't really know what > to do half of the time. Thanks for your replies though. > ------=_Part_456_31035544.1199346876512--