From: Yukihiro Matsumoto Date: 2004-12-08T14:57:25+09:00 Subject: Re: [rcr] String#split behaves odd Hi, In message "Re: [rcr] String#split behaves odd" on Wed, 8 Dec 2004 14:52:24 +0900, "Pe�a, Botp" writes: |I thought we can cater that w a limit parameter, | |irb(main):040:0> "\nabc\ndef\n".split("\n",-1).join("\n") |=> "\nabc\ndef\n" | |and that split by itself (w/o limit param) simplifies by trimming trailing |edges -which is good in some cases, imho. Blame Larry Wall for the weird default behavior. ;-) I owe him too much to do it by myself. matz.