>>>>> "T" == Tom Sawyer <transami / transami.net> 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