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" } Guy N. Hurst (Hey dblack, maybe this is where it is useful for hash, too? ;-) -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript