I have a piece of code like this:
my_hash = {}
first_key = 1
second_key = 2
third_key = 3
my_hash[first_key][second_key][third_key] = 100
and the ruby interpreter gave me an error says that:
undefined method `[]' for nil:NilClass (NoMethodError)
So does it mean I cannot use hash like that? or do you think this error might because of something else?