Yukihiro Matsumoto
12/8/2004 5:57:00 AM
Hi,
In message "Re: [rcr] String#split behaves odd"
on Wed, 8 Dec 2004 14:52:24 +0900, "Peña, Botp" <botp@delmonte-phil.com> 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.