Stefano Crocco wrote: > Alle sabato 18 agosto 2007, Bob Sanders ha scritto: > >> Let's say I have an array defined as: >> >> @people = ["Jim", "Jen", "Jess", "Jay", "Jack", "John", "Jeff", "Jed", >> "Jill"] >> >> How would I then print out the first 5 records of that array? (i.e. from >> Jim to Jack) >> >> Any ideas? >> > > puts @people [0..4] > > Stefano > > > 0.upto(4) { |x| puts @people[x]}