Hi Alex,
Thank you very much for the explanation.
Margam
On Tue, Jan 13, 2009 at 11:39 PM, Alex Collins a.j.collins...@gmail.comwrote:
My apologies - knocked send whilst getting onto the train.
In this case, you are using the CSV modules to load strings as key/
value pairs into a hash. The
Follow Up
Hello All,
After googling for some time, I found an easy way to get the data into
an Hash. Thanks to One Mr.Ryan.
-
hash = {}
CSV.foreach('test.csv') do |row|
hash[row[0]] = row[1]
end
-
But I have some questions regarding accessing the values
Sorry for asking Ruby questions in Watir group. But figured, somebody
would be able to help me.
Thanks once again
On Jan 13, 5:19 pm, Margam nk.mar...@gmail.com wrote:
Follow Up
Hello All,
After googling for some time, I found an easy way to get the data into
an Hash. Thanks to One Mr.Ryan.
Margam,
This is all to do with the basics of Ruby. It would be well worth
working through some of the ruby tutorials.
In this case;
hash[]
On 14 Jan 2009, at 01:19, Margam nk.mar...@gmail.com wrote:
Follow Up
Hello All,
After googling for some time, I found an easy way to get the data
My apologies - knocked send whilst getting onto the train.
In this case, you are using the CSV modules to load strings as key/
value pairs into a hash. The important bit being that both the key,
and the value when retrieved from the hash will be strings.
Let us examines few snippets of your