From: teresa nuagen Date: 2011-10-17T13:25:20+09:00 Subject: Re: writing a poem backwards or in reverse order "Jesús Gabriel y Galán" wrote in post #1026842: >> Program 2: >> >> Reads the poem into the program and writes it to the screen backwards >> from last line to first with the words of each line in reverse order. > > The same as above, but also use String#split to divide each line into > words. > When outputting each line, iterate over the words in the line from > last word to first word. I'm struggling on how to approach the method using "string#split" I'm unsure of how to divide each line into words and iterating it from last word to first word, and then writing it in reverse order. -- Posted via http://www.ruby-forum.com/.