Bertram Scharpf schrieb: > Hi, > > Am Samstag, 18. Aug 2007, 18:55:17 +0900 schrieb Bob Sanders: >> How would I then print out the first 5 records of that array? > > Depending on what you want to do further maybe this is worth > a consideration: > > 5.times { puts @people.shift } > > Bertram > > No need to iterate here, just puts @people.slice!(0,5) but personally I like puts @people.first(5) the most... Regards Florian