From: Reese Chappuis Date: 2011-11-13T09:20:52+09:00 Subject: Using gets and split --e89a8f3ba85df5e7d804b192b998 Content-Type: text/plain; charset=ISO-8859-1 I'm working on a challenge that tells me that the input is given at the beginning via STDIN. Thus, these are the first few lines of my program: all_input = gets all_input = all_input.to_s.split("\n") The input is going to be split by separate lines, and I want to put each into a separate element in an array. Now, this code works in irb (modified to look more like str = soandso, str = str.to_s.split.....), but when I run it in my program, everything gets thrown into one element in the array. Can someone tell me why? -- Reese Chappuis --e89a8f3ba85df5e7d804b192b998--