In Perl, you can create a hash of arbitrary depth like so:
$hash->{foo}->{bar}->{baz} = 123;
I've tried this in ruby:
hash[:foo][:bar][:baz] = 123
but I get nil.= errors
I could of course do a check for null at each level, but oy, that's so
cumbersome. Is there a ruby way?
Thanks!
--
Posted via http://www.ruby-forum.com/.