From: cjon@... (Cullen J O'neill) Date: 2000-12-01T07:10:05+09:00 Subject: [ruby-talk:6684] Re: printing/accessing arrays and hashes Raja S. (raja@cs.indiana.edu) wrote: [...] > Shouldn't > > [[1,2], [3,4]] . join(", ") #-> "[[1,2], [3,4]]" > > be the preferred behavior The problem with showing structure in join seems to me to be that "Hello World".split(" ").join(" ") #-> "Hello World" would get broken. I for one would prefer not to have: "Hello World".split(" ").join(" ") #-> "[Hello World]" I personally have no problem using arr.inpect when I want to pretty print an array. Maybe prety_print could be aliased to inspect? <1/2 wink> Cullen J O'Neill -- cjon@engin.umich.edu