From: Axel Date: 2007-09-08T04:50:05+09:00 Subject: Re: array handling advice My second attempt: input = ['a','b','c','d','e','f','g'] targ = { 0 => targ_one=[], 1 => targ_two=[], 2 => targ_three=[] } input.each_with_index do |elem, idx| ii = idx.divmod(3)[1] targ[ii] << elem end - Axel