From: "Jan E." Date: 2012-03-06T07:05:38+09:00 Subject: Re: Inconsistent behaviour when working with a string @ Bigmac Turdsplash: Your code won't work with the current version of Ruby (1.9), because the String class no longer includes the Enumerable module. This makes data.map fail. But the data.map isn't necessary anyway. In Ruby 1.8, you can simply leave it out (the string itself already is enumerable). Or you can replace the for loop with the each_line iterator to make the code work in both Ruby 1.8 and Ruby 1.9: data.each_line |ln| ... end -- Posted via http://www.ruby-forum.com/.