Hi, In message "Re: Ruby 1.9/1.8 compatibility: String#lines" on Sat, 7 Apr 2007 00:32:00 +0900, murphy <murphy / rubychan.de> writes: |It seems the most important change in 1.9, in terms of compatibility, is |that String isn't Enumerable anymore. It breaks a lot of scripts on my |system. I put "lines" before calling "each". |I couldn't find an easy way to make scripts running under both 1.8 and 1.9: | |- String#each_line requires a block in 1.8, and writing each_line{} | isn't really beautiful. If you want to iterate on lines in a string, each_line is the best name to describe the behavior, I think. YMMV. matz.