From: don Date: 2006-11-04T13:35:06+09:00 Subject: Re: Accessing a hash -- Beginner On 2006-11-03, Robert Klemme wrote: [...] > > There is not a single Hash instance in your code. Also "test" is not > set, hence it's interpreted as a method call: > > $ ruby -e " print 'hash name: ' > > hash_var = gets.chomp # enter 'test' here > > > > puts hash_var # <-- nil > > puts test # <-- the contents of the hash > > " > hash name: foo > foo > -e:5:in `test': wrong number of arguments (ArgumentError) > from -e:5 > > What is your problem? What are you trying to achieve? > Robert, thanks for the response. Part of my problem is I did not communicate my problem very well. I will try again a little later. Don