Hi,

petter svenhard wrote in post #1068112:
> Therefore i ask is it even possible to call a ruby hash element through
> a variable?

Yes, and it works just like you tried above.

However, variables mustn't begin with an uppercase letter, this is 
reserved for constants. So you have to use "var" instead of "VAR".

And I'm wondering why you use "MD5" in one case and "VAR" in the other. 
Shouldn't both be the same? Also I don't think a class variable (double 
@@) is really what you want.

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