From: "Christoph Rippel" <crippel / primenet.com> > > > From: nosuzuki / e-mail.ne.jp [mailto:nosuzuki / e-mail.ne.jp]On Behalf Of > [..] > > h = HashMD.new > > h['a']['b']['c'] = 'xxx' #=> {"a" => {"b" => {"c" => "xxx"}}} > Hi, > > > why don't you write > > h = {'a'=>{'b'=>{'c'=>'xxx'}}} > > it creates what you want and you actually type less. True . . . but (IMHO anyway) the significant power of AutoVivification in Perl is the simple expressions by which your program can create complex datastructures at "run time", rather than just "initialization time". I was tremendously overjoyed and terribly excited about AV when I "discovered" that it could be used this way last year - I had to create a wiki page about it to try to share the wonderfulness with everyone. =) It's a little wordy, but there are lots of examples: http://www.c2.com/cgi/wiki?AutoVivification Regards, Bill Kelly