"Guy N. Hurst" wrote: > > Farrel Lifson wrote: > > ... > > i = 0 > > array.each{|element| > > print "\t" unless i = 0 > > i = i+1 > > print element,"\n" > > } > > > > I have searched all the documentation available to me and > can't find a way to do it without the i's. Any ideas? > > > > Have you tried #each_with_index? > > array.each_with_index{|element,i| > print "\t" unless i = 0 > print element,"\n" > } > oh, and that should be i==0, not i=0 Guy N. Hurst -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript