From: Sijo Kg Date: 2008-11-28T15:54:47+09:00 Subject: Re: creating a dynamic hash Hi Thnaks for all the reply..So could you please tell this differnece also..I tried both ways First hashes = Array.new(elapsedtime.length) { {:bevel => 'bevel1', :value => 5 } } Here I did not want the statement return hashes In the second way hashes = [] for i in 0..elapsedtime.length-1 hashes[i] = {:bevel => 'bevel1',:value => 5} end return hashes Here when I commented return hashes it did not work Sijo -- Posted via http://www.ruby-forum.com/.