Raj Singh wrote:
> I had never seen text.split[0..length] before. What's happening here. I 
> always saw  split being passed an argument but never an array.

The code you originally posted:

>result = text.split[0..length]

is equivalent to:

arr = text.split
result = arr[0..length]
-- 
Posted via http://www.ruby-forum.com/.