From: ts Date: 2002-07-12T00:23:22+09:00 Subject: Re: spliter of for...each: looping >>>>> "T" == Tom Sawyer writes: T> q = '' T> arr.each_with_nindex do |x, n| T> q << 'junk' << x << 'morejunk' T> q << ',' if n != -1 T> end arr.collect{|x| "junk#{x}morejunk" }.join(",") Guy Decoux