From: "Peña, Botp" Date: 2008-05-20T15:52:18+09:00 Subject: Re: How is this split method working? From: neeraj.jsr@gmail.com [mailto:neeraj.jsr@gmail.com] # 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. an array was *never passed. try playing w irb, text #=> " This forum is connected to a mailing list that is read by thousands of people" text.split #=> ["This", "forum", "is", "connected", "to", "a", "mailing", "list", "that", "is", "read", "by", "thousands", "of", "people"] text.split[0..5] #=> ["This", "forum", "is", "connected", "to", "a"] text.split[0..5].join " " #=> "This forum is connected to a" kind regards -botp