From: Michael Campbell Date: 2003-06-26T22:23:50+09:00 Subject: Re: String#split(' ') and whitespace (perl user's surprise) > In irb: > > >> ' A 50 3 for 130'.split(' ', 3) > => ["A", "50", " 3 for 130"] > > What I'd like Ruby to do > > >> ' A 50 3 for 130'.split(' ', 3) > => ["A", "50", "3 for 130"] > I'd agree, FWIW. Ruby even appears internally inconsistent; why does it trim the leading \s off of 'A' and '50', but not the last element. Just because it's the last one? Bug? Oversight? By design? __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com