From: darren kirby Date: 2006-10-02T07:25:57+09:00 Subject: Re: Ruby's equivalent of PHP explode quoth the voipfc@googlemail.com: > Marc Heiler wrote: > > "Does it simply my_hash as an associative array?" > > Hi > > I think its better to call arrays arrays, and hashes hashes in Ruby. > > Isn't a ruby hash the same what some other languages call an > associative array? > Yeah, it's just semantics. I think Marc's point is that when using Ruby it is best to refer to them as Hashes to prevent confusion, as Ruby officially calls them hashes. When using PHP call them associative arrays, and in Python call them dictionaries, for the same reason. When in Rome and all. Wikipedia has an interesting page on the subject: http://en.wikipedia.org/wiki/Associative_array -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972