From: dblack@... Date: 2003-08-13T10:56:01+09:00 Subject: Re: hash default value Hi -- On Wed, 13 Aug 2003, Christoph R. wrote: > dblack@superlink.net wrote: > > .... > >>i expected that myOtherHash would be {"blue"=>{"red"=>1}} > > > > > > No, there's no autovivification in the Perl manner :-) > > This not quiet true (for 1.8) - see Guy's post. The block default value technique is vivification, but it's not auto :-) That's the thing: Emmanuel's expectation was Perl-style, whereas in Ruby you have to supply the vivification routine yourself. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav