From: markus jais Date: 2001-08-02T01:25:06+09:00 Subject: [ruby-talk:18970] hash with Array as value hi, I want an Hash with an Array (reference) as a Value, but the following does not work. #!/usr/local/bin/ruby h = Hash.new r = ['a', 'b', 'c'] h[r[0]] = Array.new(r[1], r[2]) h.each { |k, v| print k, "->", v[0], v[1], "\n" } can anybody tell me why this is wrong?? I get the following error: ./hash.rb:7:in `initialize': no implicit conversion from string (TypeError) from ./hash.rb:7:in `new' from ./hash.rb:7 which I do not understand. what conversion is ment here????? any solutions?? thank a lot regards markus -- Markus Jais http://www.mjais.de info@mjais.de The road goes ever on and on - Bilbo Baggins