From: Teresa Nguyen Date: 2011-10-16T09:04:00+09:00 Subject: writing a poem backwards or in reverse order i would like to write a poem using nano and through ruby I would like to do the following: Program 1: Reads the poem into the program and writes it to the screen backwards from last line to first. 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. Program 3: Reads the poem into the program and prints the poem to the screen backwards from last line to first with the words of each line in reverse order and the characters in each word in reverse order. I'm new to ruby and I have been trying to play around with it. Can you help me approach this problem. I know that I have to apply using a string called "split" in order to write backwards from last line to first line with the words in reverse order. Can you help me? -- Posted via http://www.ruby-forum.com/.