def gen_indices_string num
  string = ""
  num.times{|i| string<<(i+1).to_s}
  return string
end

I have a feeling that stuff can be written in a single line using some
of the ruby API. Can anyone help?

thanks
-- 
Posted via http://www.ruby-forum.com/.