From: Albert Vernon Smith Date: 2006-04-11T04:18:07+09:00 Subject: Re: [QUIZ] Markov Chains (#74) On 10.4.2006, at 14:05, James Edward Gray II wrote: > On Apr 9, 2006, at 8:45 AM, Albert Vernon Smith wrote: > >> Coming from Perl, I often rely upon auto-vivification, so I needed >> to figure out how to work around this. Perhaps there are improved >> ways of going about this, and I'd appreciate any feedback on how >> to go about it better. > > > Can you show an example using Perl's auto-vivification that feels > funny in Ruby? Perhaps we would have better ideas after seeing it... Didn't feel funny, I just wasn't use to having to declare objects (hashes and arrays) as I added them as branches on my initial hash. I had to use a little more discipline, which probably is a good thing coming from Perl-land. -a