On Mon, 22 Jan 2007, Robert MannI wrote:
> I am wondering if the mighty ruby crowd has a brilliant idea for a tricky
> problem I am solving.
> hsh['a']['b']['c'] = {}
>
> Is there an elegant solution to this, without maybe looping or eval'ing too
> much?
I suspect you are asking the wrong question.
My experience is that if you tell the Mighty Ruby Crowd why you wanted
to do that, they tend to come up with a surprisingly more elegant
thing to be doing, complete with a really quite simple way of doing it.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter / tait.co.nz
New Zealand