From: Phlip Date: 2007-08-18T23:38:48+09:00 Subject: Re: How do you print the first 5 records in an array? Dirk Bruijn wrote: > 0.upto(4) { |x| puts @people[x]} 5.times{ puts @people.shift } Hey - they didn't say non-destructively! -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax