From: Jeff Cohen Date: 2006-01-02T09:46:12+09:00 Subject: Re: The "ruby way" to break apart a name? unknown wrote: > On Thu, 22 Dec 2005, James Edward Gray II wrote: > >> On Dec 21, 2005, at 4:17 PM, mathew wrote: >> >>> Also, the number of words in the full name can vary between 1 and a fairly >>> large integer. >> >> Amen. Names are much trickier than you think... >> HEY YOU GUYS! :-) I was originally asking for the best way to return the first and last parts of an array. Breaking apart a name was just an example because I had to make up and example in order to ask the question. Hence I said "Assume for simplicity..." OF COURSE dealing with names is not as trivial as my example. The initial replies helped me understand arrays in Ruby better. Thanks Jeff -- Posted via http://www.ruby-forum.com/.